SkeletonExpress
skeletonExpress allows you to generate complete project structure for your express projects.
The package pre installs express(Exact version), body-parser, morgan, cors and nodemon(as a dev dependency) just run this command and no need to do "npm install" anymore.
The generated project structure is as follows-
├── ./app.js
├── ./controllers
│ └── ./controllers/controller.js
├── ./cron
│ └── ./cron/cron.js
├── ./database
│ ├── ./database/migration
│ ├── ./database/models
│ └── ./database/seeders
├── ./Dockerfile
├── ./helper
├── ./middlewares
├── ./package.json
├── ./package-lock.json
├── ./public
│ ├── ./public/images
│ ├── ./public/js
│ └── ./public/styleSheets
├── ./routes
│ └── ./routes/router.js
├── ./server.js
├── ./services
├── ./test
└── ./views
The steps regarding installation are -
1.Download the package globally
npm install -g skeletonExpress
2.run the following command
skeleton install <your_app_name> e.g skeleton install nodeGOAT
3.cd to your created folder, in this case
cd nodeGOAT
4.run
npm run dev
go to the browser and hit :localhost:3000
and you will see the following output-
Welcome
enjoy !!