mart-anthony-stark / Ngenly-CLI

A Nodejs CRUD API generator

Home Page:https://martanthony.vercel.app/posts/ngenly-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ngenly CLI

https://nodei.co/npm/ngenly.png?downloads=true&downloadRank=true&stars=true

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 [resource] [library] [name] Generates crud files (Model, Controller, Router)
ngenly --gui Opens the browser for ngenly GUI

Create a new project

ngenly new

Alt text

  • Project Boilerplate will be created with its own folder Alt text

    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

Generate CRUD

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 Alt text

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.

About

A Nodejs CRUD API generator

https://martanthony.vercel.app/posts/ngenly-cli

License:MIT License


Languages

Language:JavaScript 80.5%Language:HTML 16.5%Language:CSS 3.0%