Skip to content

SgroupVN/express-mongo-advance-boilerplate

Repository files navigation

THIS IS TEMPLATE RESTFUL API FOR MONGOOSE

Setup

Environment

  • Install nodejs
  • First create .env file by this command
cp .env.example ./.env
  • Config environment variables:
    • Configure mongodb connection string (DATABASE_URL in env file).
    • In this case: DATABASE_URL=mongodb://username:password@host:port/database?options
    • Set NODE_ENV in .env file(default is development environment)

Start project

With npm:

  • To run project on development:
npm dev
  • To run project on production:
npm start

With yarn:

  • To run project on development:
yarn dev
  • To run project on production:
yarn start

Packages of project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages