This is a Node.js package for generating an Express app. It provides a command-line interface for creating a new Express app with a basic file structure and configuration.
To install the package, run the following command:
npm i -g @nebula2003/generator-express
To create a new Express app, run the following command:
generatorExpress create app <path>
To add a new Service, run the following command:
generatorExpress add-service <name> <path>
To run the application with Babel transpilation and PM2 process manager, follow these steps:
- Install dependencies:
npm i
- Run the application:
npm start
- To stop the application, run the following command:
npm stop
Note: The application requires PM2 to be installed globally. To install PM2 globally, run the following command:
npm i -g pm2
Note: The ES6 version of this Express app includes Babel for compatibility with older packages that use require
. Make sure to follow the steps in the Running the Application section to set up and run the application with Babel and PM2.
- Add eslint, prettier configs.
- Improve template
- Guard clauses
- Dependency Updates
- Change scripts to pnpm
- Add typescipt support
- Better logging (elk/grafaan integration)
- Redis integration
- Remove unnecessary code in templates i.e. imporove template quality
- ecosystem.config.js is not rm from npm.