A boilerplate for Node.js, Express, Mongoose, JWT Authentication, mLab, Nodemon, and Babel.
Clone the repo:
git clone https://github.com/necheporenko/restfull-api-nodejs-starter-kit.git
cd restfull-api-nodejs-starter-kit
Install yarn:
npm install -g yarn
Install dependencies:
yarn
Start server:
yarn run dev
Default configuration
// Please note, doesn't store your credentials in open access
// .env
PORT = <PUT_YOUR_PORT_HERE>;
MONGODB_URL = <PUT_YOUR_MONGODB_URL_HERE>;
SECRET = <PUT_YOUR_SECRET_HERE>;
.
├── server
│ ├── config
│ ├── controllers
│ ├── models
│ └── routes
├── .babelrc
├── .env
├── .gitignore
├── package.json
├── package-lock.json
├── README.md
├── server.js
└── yarn.lock