Welcome to the open-source version of playnarrator.com, an AI-powered RPG created by David Tompkins. This repository contains the code for running Playnarrator locally using Docker, with a React frontend and Node.js backend.
- Prerequisites
- Installation
- Getting API Keys
- Running the Application
- Stopping the Application
- Troubleshooting
- License
- Contact
Before you begin, ensure you have the following installed on your system:
- Clone this repository or download it as a ZIP file and extract it.
git clone https://github.com/DavidNTompkins/narrator.git
cd narrator
-
If you haven't installed Docker yet, follow these steps:
-
For Windows and Mac:
- Download Docker Desktop from the official Docker website
- Follow the installation wizard to install Docker Desktop
- After installation, start Docker Desktop
-
For Linux:
- Follow the instructions for your specific Linux distribution on the official Docker documentation
-
-
Verify Docker installation by opening a terminal or command prompt and running:
docker --version
If you see a version number, Docker is installed correctly.
You'll need API keys for OpenRouter, Stability AI, and FAL AI. Here's how to obtain them:
-
OpenRouter API Key:
- Go to OpenRouter
- Sign up for an account
- Navigate to your dashboard and find your API key
-
Stability AI API Key:
- Visit Stability AI
- Create an account or log in
- Go to your account settings to find your API key
-
FAL AI API Key:
- Go to FAL AI
- Sign up for an account
- In your account dashboard, locate your API key
Keep these API keys handy; you'll need them when running the application.
-
For Windows users:
- Double-click the
windows.bat
file in the root directory of the project
- Double-click the
-
For Mac and Linux users:
- Open a terminal in the root directory of the project
- Run the following command:
chmod +x mac_and_linux.sh ./mac_and_linux.sh
-
If this is your first time running the application, you'll be prompted to enter your API keys. The script will create a
.env
file with these keys. -
The script will build the Docker images (if necessary) and start the application.
-
Once the application is running, you can access the frontend by opening a web browser and navigating to:
http://localhost:3003
To stop the application:
- If you're running it in a terminal window, press
Ctrl+C
- The script will automatically run
docker-compose down
to stop and remove the containers
If you encounter any issues:
- Ensure Docker is running before starting the application
- Check that you've entered the correct API keys
- If you modify the code, rebuild the Docker images by running:
docker-compose build
- For Windows users, make sure you're running the
.bat
file as an administrator - For Mac/Linux users, ensure the
.sh
file has execute permissions
This project is released under the Unlicense. This means you can do whatever you want with this code - use it, modify it, distribute it, or even sell it. There are no restrictions whatsoever. It's all yours! Here's a summary of what this means:
You can use this code for any purpose, including commercial applications. You don't need to provide attribution or include any license notice. You can modify the code and distribute your modifications. You can sublicense the code under any license you choose.
For any additional questions or support, please open an issue in this repository or contact David Tompkins through his website: david.tompkins.computer
Thanks for playing!