/rapi

A CLI tool to make and manage Go APIs, supporting popular frameworks like Gin, Fiber, and many more!

Primary LanguageGoMIT LicenseMIT

rapi

rapi, (rap-ee) is a CLI tool to make and manage Go APIs, supporting popular frameworks like Gin, Fiber, and many more!

Features

  • Create a new project
  • Initialize rapi in a current project
  • Create a new route and middleware
  • Add routes to your project, supporting Global and Grouping routes
  • Add middlewares to your project, with options for Global, Group, and Route middleware
  • Add groups to your project

Installation

go get github.com/subtsoharki/rapi

Usage

rapi [command] [arguments]

Commands

  help             [command]    Help about any command
  init                          Initialize rapi in a current project
  new              [name]       Create a new project
  add:middleware   [name]       Add a new middleware
  add:route        [name]       Add a new route
  add:group        [name]       Add a new group

Currently, rapi supports the following frameworks (more to come):

Future Plans

  • Add support for other languages (Javascript, Python, PHP, etc.)
  • Add 'rapi install' command to install middlewares for each framework
  • Add middleware templates for each framework by flag (Database, Authentication, etc.)
  • Add flags to 'rapi new' command to specify framework to speed up project creation
  • Create testing for each framework