Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 844 Bytes

README.md

File metadata and controls

50 lines (34 loc) · 844 Bytes

Api-node

Running locally

You need mongodb 4.2+ running, and node/pnpm installed.

pnpm install
pnpm start

🌱 Seeding data

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.

🔧 Environment

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>

✅ Testing

To run all tests

npm run test

To run specific tests

npm run test-only **/gameinfo.spec.ts