-
Duplicate
.env.exampleand rename to.env. Provide all the values.Key Description DISCORD_API_TOKEN Obtained from https://developer.discord.com DISCORD_MAIN_GUILD_ID Based on Discord's API docs, provide a GUILD_IDto be the "main server"SHARDING_TOTAL_SHARDS Number of shards for the application to be split on SHARDING_INITIAL_PORT Starting port for the exposed HTTP API, usually 5000SHARDING_PORT_INCREMENT Number to add to the HTTP API port count. Recommended value is 1 -
Run
npm run setup.
This project is ready to be run with Docker, the command is the following:
npm run docker:buildThis will create the required containers for the application on an empty state, database needs to be prepared next.
To initialize the database on a new instance, the following command must be executed before running the application:
npm run database:initOnce all previous steps are done, you can start the application with the following command:
npm start# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covRead CONTRIBUTING.md.
Rozetta is MIT licensed.