pol-cova / GoGinit

GoGinit is a user-friendly CLI tool that helps you quickly set up new Go backend projects with a choice of popular frameworks like Echo and Gin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoGinit ๐Ÿš€

GoGinit is a CLI tool for initializing Go backend projects with ease. Perfect for kickstarting your Go projects with structured templates and framework options!

Features ๐ŸŒŸ

  • Seamless Initialization: Set up a new Go project in no time.
  • Framework Options: Choose between Echo, Gin, Fiber, Fuego, or other supported frameworks.
  • Customizable: Optionally include configuration files and setup scripts.
  • SQLite Database Setup: Initialize a SQLite database with your project.
  • Start Command: Easily run your Go project with a single command.
  • Clean Command: Remove unused libraries in the mod file.

Installation ๐Ÿ› ๏ธ

Homebrew ๐Ÿบ (macOS/Linux)

  1. Tap the Homebrew repository:

    brew tap pol-cova/goginit
  2. Install GoGinit:

    brew install goginit

Manual Installation

  1. Download the latest binary from the releases page.

  2. Extract the binary and move it to a directory in your PATH:

    tar -xzf goginit_<version>_<os>_<arch>.tar.gz
    sudo mv goginit /usr/local/bin/

Usage ๐ŸŽ‰

Initialize a New Project

To initialize a new Go project, run:

goginit init 

Start the Project

To run the main.go file located in cmd/projectName/main.go, use:

cd <projectName>
goginit start <projectName>

Options:

  • <project-name>: Name of the project (required).

Clean the Mod

To clean the mod file use:

   cd <projectName>
   goginit clean

Framework Options

  • echo: For the Echo framework
  • gin: For the Gin framework
  • fiber: For the Fiber framework
  • fuego: For the Fuego framework
  • martini: For the Martini framework
  • chi: For the Chi framework
  • mux: For the Mux framework
  • GoFr: For the GoFr framework
  • Fuego: For the Fuego framework
  • default: For the native net/http

Future Updates ๐Ÿ”ฎ

  • Optimization: Upcoming updates will focus on optimizing performance and improving overall efficiency.
  • Test: Implementing test options for your backend using the CLI tool.
  • Benchmarking: Adding benchmarking options to the CLI tool.

Contribution Guidelines ๐Ÿค

We welcome contributions! To contribute:

  1. Fork the repository and clone your fork.
  2. Create a new branch for your changes.
  3. Make your changes and test thoroughly.
  4. Submit a pull request with a detailed description.

License ๐Ÿ“„

GoGinit is licensed under the MIT License.

Contact ๐Ÿ“ซ

For support or questions, reach out to us at polc394@gmail.com.


Happy Coding! ๐ŸŽ‰


About

GoGinit is a user-friendly CLI tool that helps you quickly set up new Go backend projects with a choice of popular frameworks like Echo and Gin.

License:MIT License


Languages

Language:Go 100.0%