@nebula2003/generator-express
v1.1.2
Published
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.
Downloads
9
Readme
Express App Generator
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.
Installation
To install the package, run the following command:
npm i -g @nebula2003/generator-express
Usage
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>
Running the Application
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.