/restfull-api-nodejs-starter-kit

A boilerplate for Node.js, Express, Mongoose, JWT Authentication, mLab, Nodemon, and Babel

Primary LanguageJavaScriptMIT LicenseMIT

RESTfull Api Node.js Starter Kit

License: MIT dependencies Maintainability

A boilerplate for Node.js, Express, Mongoose, JWT Authentication, mLab, Nodemon, and Babel.

Getting Started

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

Configuration

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>;

Directory Structure

.
├── server
│   ├── config
│   ├── controllers
│   ├── models
│   └── routes
├── .babelrc
├── .env
├── .gitignore
├── package.json
├── package-lock.json
├── README.md
├── server.js
└── yarn.lock