@nebula2003/generator-express

1.1.2 • Public • Published

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:

  1. Install dependencies:
npm i
  1. Run the application:
npm start
  1. 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.

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @nebula2003/generator-express

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    106 kB

    Total Files

    78

    Last publish

    Collaborators

    • nebula2003