Developing CRUD APIs can be a time-consuming and repetitive task for Node.js developers. Manually writing boilerplate code, configuring routes, and handling common security concerns can slow down the development process and hinder productivity. There is a need for a tool that simplifies API development, automates repetitive tasks, and promotes efficiency without compromising flexibility and security.
As the creator of Ngenly CLI, I am thrilled to present this game-changing tool that will revolutionize your API development process. Ngenly CLI is born out of my own experience as a Node.js developer, seeking a way to simplify and accelerate the creation of CRUD APIs.
With Ngenly CLI, I aimed to eliminate the mundane and repetitive aspects of API development. I wanted to provide developers with an intuitive and efficient solution that would free up their time and energy to focus on building unique features and delivering exceptional user experiences.
Ngenly CLI
A node project boilerplate generator
Installation
Install the package globally using yarn or npm
npm install -g ngenly
Usage
- execute in terminal ngenly [command]
Commands
Command | Description |
---|---|
ngenly new | Generates a new project |
ngenly upgrade | Installs the latest version of ngenly globally |
ngenly [-g / generate] | Starts generating project or crud using menu |
ngenly -v | Returns cli version |
ngenly --version | Returns cli version |
ngenly -g [crud] [library] [name] | Generates crud files (Model, Controller, Router) |
ngenly --gui | Opens the browser for ngenly GUI |
Create a new project
ngenly new
- Project Boilerplate will be created with its own folder
You can also generate project boilerplate with one-liner command Usage: ngenly -g project [expressjs | expressts | fastifyjs | fastifyts] [projectName]
ngenly -g project expressjs School-Management-API
Generate CRUD files
Usage: ngenly -g crud [expressjs | expressts | fastifyjs | fastifyts] [model_name]
ngenly -g crud expressjs user
Ngenly GUI
Ngenly GUI is a new feature introduced in version 3.0.0 of the Ngenly CLI tool. It provides a graphical user interface (GUI) for easier interaction with Ngenly and its functionalities.
As of now, the Ngenly GUI primarily includes the “Create Project” feature, allowing users to generate a new project with a few simple steps through the graphical interface. However, please note that additional features, such as creating models, routes, and controllers are planned to be added in future updates. These enhancements will further empower developers to efficiently generate and manage their projects using the Ngenly CLI tool.
Stay tuned for updates as more features are incorporated into the Ngenly GUI to enhance your development experience.
- Command for starting gui local server
You need to be in an empty directory (your desired new project directory).
ngenly --gui
- Or you can also just enter
ngenly
command and the GUI will start
Note: Creating a new project with Ngenly requires an internet connection as it involves cloning a boilerplate from a hosted git repository. However, generating CRUD files (Model, Route, Controller) can be done offline without the need for an internet connection.