Express Rest API & Boilerplate Generator
Create an app from scratch with Boilerplalte or Generate services and controllers by simple CLI commands based on latest conventions of coding.
a Boilerplate to start a project from scratch with neccessary configs and structure.
CLI Commands to simply create project parts:
controllersor even whole
we will try to make it much better in futrue, any suggestions would be appreciated by all users.
Error Handling System.
pre configed dotenv structure to bring environment variables.
and more hidden features like
In your Terminal/CMD enter
npm i -g xpg then you can use this package anywhere by CLI commands.
makes a new app
xpg -n [app name]
this command will create a complete project based on model-view-controller and services which is api based and all layers are seperated.
makes both controller and service
xpg [model name]
xpg -hwill show a list of commands .
- async handler function will wrap all controllers so you will never need to use try-catch in any of your express apps.
Error Handling System
- pre configured environment variable configurations for development and production which uses
- other pre configurations like:
note: this is an open source project, feel free to clone.
if you have any suggestions we appreciate you make an issue.
Hope You Enjoyed Using This Package
❤️ ❤️ ❤️.