UNPKG

create-nodejs-express-project

Version:

A CLI for generating a new express project with the MVC structure

40 lines (20 loc) 1.12 kB
# create-express This is a CLI for creating an express project. It saves you the pain of starting your nodejs express project by creating all the necessary files to get your started. It has basic user registration and login created with the model and route in place. It follows the MVC structure. It also initialise git for you. ## To install it globally run : npm install -g create-nodejs-express-project # OR ## To install in on a single project run: npm install create-nodejs-express-project ## OR yarn add create-nodejs-express-project Usage: ## Run : create-express --git --install The --git is the flag to initialise git and --install is for installing all the requiered dependencies for you. If you don't want to initialise git just yet just remove the flag like this: create-express --install And if you don’t want to install the dependencies yet or wish to install them with something else rather just remove --install ### Cli comes with mongoose and JWT installed: Add your mongoDB and your JWT secret secret in the .env file. ### To test it run: node index.js