The repo contains the boilerplate for REST
.
Node.js, Express, Jest, REST, firebase Authentication, Mongoose.
# install dependencies
$ npm i
# copy and modify the .env.example to .env
# start
$ npm run start:dev
Local: npm run docs
Production: npm run docs:production
\
npm run db:seed
Make sure docker and docker-compose is installed in your system
$ docker-compose up
In order to seed database:
-
First list the container using:
docker ps
-
Seed the database:
docker exec [container_id] npm run db:seed
In order to generate api docs:
Local - docker exec [container_id] npm run docs
Production - docker exec [container_id] npm run docs:production
Runs the test cases from the folder test
npm run prettier:write
npm run lint:fix