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
.env
file and specify all envonment variables which listed in.env.example
file - run
npm run db:create:dev
(ornpm run db:create:prod
for production) andnpm run db:migrate
to create and initialize your own postgresql database
- run
npm run dev
for development purposes ornpm run build && npm start
for 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 joggingapp
to run the appdocker stop $(docker ps -q --filter ancestor=joggingapp )
to gracefully shutdown the running app