/quickMongoServer

A boilerplate to get up and running with a MongoDB/Express server.

Primary LanguageJavaScript

Quick Server with Mongo

Build Status

Instructions

  • Clone this repository into your directory of choice.

  • Run 'npm install' in your terminal from directory root.

  • Create an .env file in root directory that has this format:

    JWT_EXPIRY:'Expires In example '7d'

    JWT_SECRET='SECRET YOU WANT'

    DATABASE_URL="ENTER DATABASE URL"

  • Run 'npm start' in your terminal to get the application up and running with Nodemon.

  • Optionally you can run 'npm test' after initial startup to ensure everything is working.

Attention

  • The code to protect endpoints through authentication has been commented out