create-expressjs-rest-app
v1.3.0
Published
Create a Node.js app for building APIs using nodejs, express and mangoose, by running one command
Downloads
8
Maintainers
Readme
REST API Boilerplate for Node.js
A starter boilerplate for building APIs using Node.js, Express, and Mongoose.
Installation
NPM Installation :
npx create-expressjs-rest-app <project-name>
Or
npm init expressjs-rest-app <project-name>
Manual Installation :
Clone the repository
git clone --depth 1 https://github.com/codemac0/expressjs-rest-boilerplate.git
cd expressjs-rest-boilerplate
Install the dependencies:
npm install
Set the environment variables:
cp .env.example .env
# open .env and modify
Features
- MongoDB - Mongoose
- Passport JWT Authentication
- nodemon for faster development
- mongo sanitize - sanitize request data
- CORS - Cross-Origin Resource-Sharing enabled
- Error handling
- Enviroment Variables (.env) for security (API keys etc...)