Skip to content

FOSS-Community/ginister

Repository files navigation

Ginister

Ginister is a Go CLI tool that helps you quickly scaffold a fully functioning backend application using the Gin framework, GORM, and MySQL. It automates the process of creating a scalable project structure, setting up a database, generating models, and implementing basic CRUD APIs.

Features

  • Automatic project setup with Gin, GORM, and MySQL
  • Scalable folder structure generation
  • Dynamic model generation with GORM support
  • Pre-built CRUD operations for each model

Prerequisites

  • Go 1.18+
  • MySQL

Installation

How to install

curl -L https://fosscu.org/ginister/install.sh | sh

This will install ginister on your computer.

Install Manually

Clone the repository and build the CLI tool:

git clone https://github.com/Utkarsh4517/ginister.git
cd ginister
go build -o ginister

Running the CLI

  • ./ginister
  • Follow the prompts!

  • go run main.go

Project structure explanation

<project_name>/
├── config/          # Database configurations
├── controllers/     # Controller files with CRUD logic
├── models/          # GORM models
├── routes/          # API route management
├── main.go          # Entry point

Donation Acknowledgment

Proudly donated to FOSS-Community by Shivam Bharadwaj and Utkarsh Shrivastava.