Skip to content

aliaksandr-andreyeu/nodejs-connect-mongoose-swagger

Repository files navigation

Node.js REST API example

Node.js REST API boilerplate with Connect, Mongoose, Swagger

This is the example of the Node.js REST API backend for related React.js Web & React Native Mobile applications.

Configuration

Set up a MongoDB database:

Set up a MongoDB database either locally or with MongoDB Atlas.

Set up environment variables:

Set MongoDB variables in .env.development:

  • DB_HOST - Database host name
  • DB_PORT - Database port number
  • DB_NAME - Database name
  • DB_USER - Database username
  • DB_PSW - Database username password

Project set up:

npm install

npm run start:dev

Requirements

  • Node.js >= v16.13.0
  • MongoDB >= v3.6

Licensing

Please see our LICENSE for copyright and license information.

About

Node.js with Connect, Mongoose, Swagger REST API boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published