This boilerplate template is primarily designed to run with mongodb.
Environment Setup
-
Clone the project and install the dependencies.
$ git clone https://github.com/donymvarkey/nodejs-server-boilerplate.git $ cd nodejs-server-boilerplate $ npm install
-
Create a
.env
file in the root directory -
Add your configs to the
.env
filePORT='your_port' MONGO_URL='your_mongodb_url' SIGNATURE='your_secret'
-
Start the dev server
$ npm run dev
You should see the following log in the console.