NodeJS version should be at least 8.12.0.
npm version should be at least 6.4.1.
Docker version at least 18.06.1-ce. (only if you need to run via docker)
- run
npm install - in the root project folder create
.envfile and specify all envonment variables which listed in.env.examplefile - run
npm run db:create:dev(ornpm run db:create:prodfor production) andnpm run db:migrateto create and initialize your own postgresql database
- run
npm run devfor development purposes ornpm run build && npm startfor production
Also you can use docker for running (production only):
docker build -t joggingapp .to build docker image locallydocker run -d -p 3000:3000 --env-file .env joggingappto run the appdocker stop $(docker ps -q --filter ancestor=joggingapp )to gracefully shutdown the running app