@qpress/cli v1.0.1
Quick Express CLI
Overview
This package is an add-on to @qpress/core and allows for easy creation of qpress applications and assets. For the latest documentation, please refer to https://qpress-documentation.netlify.app/.
Installation
npm install -g @qpress/cliUsage
Creating a New Application
To create a new application, open a terminal in the project directory and use the following command:
qpress new <<Application Name>> -mThis command will generate a new application with the given name. If a minimal application without sample data is needed, add the -m flag to the command.
Generating an Asset
To generate an asset, open a terminal in the desired directory and run the following command:
qpress g <<type>> <<name>>This command will generate an asset in the given path. The available types are:
- To generate a module:
mormodule(modules will be generated inside a folder named after the module automatically) - To generate a controller:
corcontroller - To generate a provider:
porprovider - To generate a middleware:
middleware
Generated assets will be automatically imported into the app module.
Running QPress Development Server
To run the QPress development server, open a terminal inside the project folder and run the following command:
qpress serveThis command will start the dev server with auto-reload.
Building QPress Server
To build the QPress server, open a terminal inside the project folder and run the following command:
qpress buildThis command will compile and minify the QPress server.