Skip to content

Yasir761/genapi-cli

Repository files navigation

GENAPI CLI

A lightweight CLI tool to scaffold REST or GraphQL APIs with Express.js — in seconds.

Features

  • Generate REST API boilerplate
  • Generate GraphQL API boilerplate
  • Interactive prompts OR direct CLI flags
  • Ready-to-use folder structures
  • Professional boilerplates with Express, Apollo, and MongoDB setup

Installation

Install genapi with npm

npm install -g genapi

Usage

Interactive mode

genapi-cli

Direct mode

genapi-cli my-api --framework express --type rest
genapi-cli my-api --framework express --type graphql

Example Output

my-api/
├── server.js
├── schema/
   ├── resolvers.js
   └── typeDefs.js
└── package.json

Contributing

Contributions are always welcome!

Please read our Contributing Guide to get started and make your contributions effective.

Also, adhere to the project's Code of Conduct to ensure a welcoming community for all contributors.

License

MIT

About

genapi cli is a creating a schema. models and much mor from CLI.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published