Tired of searching for the right boilerplate repo? Generate your next ExpressJS project from the command line, and pick the options you need to fit your next project.
Now with Typescript support!
- Code in ES6+ or Typescript
- Interactive CLI prompts walk you through each option to customize your build (no more inline flags)
- Choose your own database starter configs (
mongojs
,mongo + mongoose
,sequelize
, ornone
) - Optional caching configs for Redis
- File watcher via
nodemon
to transpile code on change
- Ability to specify SQL dialect for
sequelize
(postgres, mysql, sqlite, etc.) - More CLI options for more packages
- Testing: starting with
jest
will add configs for other frameworks eventually - More testing of this framework itself
npx generate-express myCoolProject
- You can download npx here by running
npm i -g npx
- Example of generated project structure
- Dependencies are installed automatically
# run with file watch (development)
$ npm run start
localhost:3001/api
localhost:3001/api/users
# run with file watch (development)
$ npm run start
# run as production
$ npm run prod
# create prod build to /dist
$ npm run build
MyCoolApp
└── server
├── app.js
├── bin
│ └── www.js
├── controllers
│ └── userController.js
├── models
│ ├── User.js
│ └── index.js
└── routes
├── hello.js
├── index.js
└── users.js
Feel free to raise an issue or create a Pull Request if you see ways that can improve this library.
Express' application generator.