/nodejs-cli-boilerplate

This is a CLI project for creating nodejs boilerplate with just a command.

Primary LanguageJavaScript

Welcome to node-dynamic-boilerplate!

Hi! This is a cli project. You can generate nodejs project using the CLI.

Installation

npm install -g node-dynamic-boilerplate

Create a NodeJS Boilerplate from CLI.

Run below command in your terminal specifying your app name

node-dynamic-boilerplate <app name> // app name is optional

So your project is created now. Now you need to set up your project.

Steps to set up project:

cd project_name

npm install

npm start OR node bin/www or nodemon

Project Structure

alt mongoose-project-structure-image

Features:

Feature Version
Mongoose DB Connection 1.0.1
Dynamic CRUD Middleware 1.0.1
Dynamic Routes Configuration 1.0.1
Seeder 1.0.1
Logger 1.0.1
Views 1.0.1
Environment Configuration 1.0.1
.env 1.0.1
.gitignore 1.0.1
Sorting 1.0.2
Pagination 1.0.2
Limit fields 1.0.2

Upcoming Features:

Upcoming Feature
Mailer
Authentication
File Upload
Global Error Handler

Upcoming Templates:

Upcoming Templates
NodeJs with Native Mongo Client
NodeJs with Sequalize (Postgres SQL)
Any suggestions are welcome