Project requires Node.js and pnpm to run. After installing Node, it is recommended to use NVM (installation guide) to manage Node versions. To set the Node version used by the project, run nvm use from root and follow the prompts, especially if that version has not been installed yet.
No other system level dependencies are needed.
This project uses dotenv to manage environment-specific settings. Copy the .env.example file in the bot directory to .env and enter in the necessary values listed inside the file. If you do not have a token yet, check out this guide.
Set ENABLE_MOCK_API=true for local development with mock data, or set it to false and provide API_BASE_URL for a backend. Leave DISCORD_TOKEN empty if you do not need a Discord connection, and clear unused optional placeholder values.
Warning
Keep the Discord token to yourself at all costs.
See the Data API docs for the backend routes and response types.
In the root directory of the project enter the following commands. This will install all dependencies and begin the dev instance.
pnpm install
pnpm devTo run the Discord bot or web client individually, run from the root:
pnpm dev:bot
pnpm dev:web