@qpress/core
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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 or module (modules will be generated inside a folder named after the module automatically)
  • To generate a controller: c or controller
  • To generate a provider: p or provider
  • 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.

GitHub Twitter LinkedIn Sponsors

Dependencies (5)

Dev Dependencies (16)

Package Sidebar

Install

npm i @qpress/core

Weekly Downloads

1

Version

0.2.2

License

ISC

Unpacked Size

384 kB

Total Files

229

Last publish

Collaborators

  • srukshan98