this is a generator for exppres apps with mongodb databse
npm install expressjs-mongodb-generator``cmd`
npm install -g expressjs-mongodb-generator
This app generates an Express project with bcrypt, cookie-parser, cors, dotenv, express, jsonwebtoken, and mongoose built in for RESTful APIs
``
create-express-app
and you'll see the questions.
Once you run create-express-app in the command line, you'll see four questions, including:
`cmd
what is your project name?,
what is your database address? ,
what is your secret key for JWT?
what is the project port? ,
`
All of these four questions are required for the project to be generated.
Once the project is generated, run
`cmd`
npm start
And the project will start with the route you entered earlier.
`cmd``
āāā app/
ā āāā controllers/
ā ā āāā index.js
ā āāā middlewares/
ā ā āāā index.js
ā āāā models/
ā ā āāā index.js
ā āāā routes/
ā ā āāā index.js
ā āāā schema/
ā ā āāā index.js
ā āāā index.js
āāā .gitignore
āāā .env
āāā package.json
āāā server.js
āāā README.md
I welcome and look forward to your pull requests!