Skip to content

nabinstha1234/node-mongo-boilerplate-with-firebase-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The repo contains the boilerplate for REST.

Node.js, Express, Jest, REST, firebase Authentication, Mongoose.

Installation guide


# install dependencies
$ npm i

# copy and modify the .env.example to .env

# start
$ npm run start:dev

Generate API Docs

Local: npm run docs
Production: npm run docs:production \

Seed database

npm run db:seed

Using Docker

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

npm run test

Runs the test cases from the folder test

Prettier

npm run prettier:write

Lint

npm run lint:fix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages