create-nodejs-express-project
v1.0.4
Published
A CLI for generating a new express project with the MVC structure
Downloads
15
Maintainers
Readme
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