1.1.0 • Published 2 years ago
quickestra v1.1.0
Quickestra
Quickestra is a simple easy to use preconfigured ExpressJS application
Installation
To use this module in your project, you need to install it using npm or yarn:
npm install quickestraOr
yarn add quickestraUsage
import Application from 'quickestra';
async function main (): Promise<void> {
const app: Application = new Application();
await app.configure();
await app.start();
}
main();API
The Application class contains the following methods:
getApp
Returns the ExpressJS application instance
const app: Application = new Application();
app.getApp();getServer
Returns the HTTP server instance
const app: Application = new Application();
app.getServer();version
Returns the version of the module
const app: Application = new Application();
app.version();configure
Configures the application
const app: Application = new Application();
await app.configure();start
Starts the application
const app: Application = new Application();
await app.start();stop
Stops the application
const app: Application = new Application();
await app.stop();Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE file for details