@qpress/core
v0.2.2
Published
A Quick Express Controller Server
Downloads
3
Maintainers
Readme
Quick Express Core
Overview
This package is an add-on to @qpress/cli 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/cli
Usage
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>> -m
This 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:
m
ormodule
(modules will be generated inside a folder named after the module automatically) - To generate a controller:
c
orcontroller
- To generate a provider:
p
orprovider
- 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 serve
This 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 build
This command will compile and minify the QPress server.