Thoth is a multishot system builder. It leverages a visual coding style interface to allows game designers and developers to rapidly create powerful natural language systems and prototype games.
We use Docker to run a local Postgres database. You can skip the docker and install postgres directly, but you are almost always better off just using Docker. For Linux and MAC users, sleep and concurently commands must be installed in the machine.
First, install dependencies
yarn install
OR
npm i
In order to run the client and server use
yarn run dev
OR
npm run dev
If on Windows run:
yarn run dev:windows
You will need to modify environment variables by copying .env and renaming it .env.local and then input your api keys. (these files are safe from the .gitignore)
Go to client folder, and create a new file called .env.local -- copy any .env vars you want to set from .env there
Go to server folder, and create a new file called .env.local -- copy any .env vars you want to set from .env there
- Clone the repository
- Navigate to the project root by running
cd thoth
- Run
yarn install
to install project dependencies - Run
yarn start
to start the @thothai/thoth-client app
- Core the contents of
core/.env.default
tocore/.env
and modify the secrets as necessary - Step 2 in Monorepo Development Setup
In the project directory, you can run:
Runs both server and client.
Open https://localhost:3001 to view it in the browser.
Runs @thothai/client in the development mode.
Open http:https://localhost:3003 to view it in the browser.
Builds the @thothai/thoth-client app for production to the client/build
folder.
Builds the @thothai/core package for production to the core/build
folder.