You need mongodb 4.2+ running, and node/pnpm installed.
pnpm install
pnpm start
To get started easier, you can inject some data with:
pnpm seed
This will create three users, with emails [email protected]
, [email protected]
and [email protected]
, and password password
.
Most of the configurable environment variables are shown in app/config/env.ts
. You just need to create a .env
file at the root of the project with the changed environement variables.
For example:
#.env file
NODE_ENV=production
automatedEmails=true
cron=1
sessionSecret=customSessionSecret
domain=my-domain.com
dbUrl=<custom mongodb url>
To run all tests
npm run test
To run specific tests
npm run test-only **/gameinfo.spec.ts