Testing the application using a database on your own machine will require a localhost database setup:
- Create a
.envin the root directory of the repository. - Inside of the
.envfile, include the following:
DISCORD_TOKEN="<token>"
MONGO_URI="<uri>"Replace <uri> and <discord bot token> with your MongoDB URI and Discord bot token.
Then, in a command line at the top directory of where you have cloned the project, run:
pnpm iThen, to compile the project, run
pnpm build
To execute the project, run
pnpm dist
Alternatively, you could simply run a single command in development:
pnpm dev