/express_backend

ExpressJS REST API w/ MongoDB and Mongoose

Primary LanguageJavaScript

API Backend using ExpressJS and MongoDB

Setup

    git clone https://github.com/cak-17/expressjs_backend
    cd expressjs_backend
    npm install

Add your MongoDB credentials to and .env file in your backend root folder.

    ATLAS_DB_USER=<username>
    ATLAS_DB_PASS=<mongodb psw>
    ATLAS_DB_HOST=<mongodb cluster>

Usage

To run the server just type npm run start, or node main.js runserver. If you want to run in it develoment mode use npm run dev or node main.js runserver -d

For more options node main.js help