Skip to content

A django-like template for golang gin web framework

License

Notifications You must be signed in to change notification settings

Zncl2222/gin-dj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gin-dj

This is a Golang Gin web frameworks template that provides a Django-like folder structure and command line tools for initializing projects and creating apps. It also includes some common and useful middleware that are set as default.

Prerequisites

This project are made depeneds on following packages.

Installation

Run following command to install the Golang Gin web framework template.

go install github.com/Zncl2222/gin-dj@latest

Or clone this project and run the following command in project's root directory

go install .

Quick Start

Use the command line tools to initialize project and create app like what django-admin and manage.py does.

Create project

gin-dj init example-project

Change directory to your project directory

cd example-project

Create custom app

gin-dj createapp example-app

Folder Structure

example-project/
├── example-app/
|   ├── models.go
|   ├── serializers.go
|   ├── urls.go
|   ├── views.go
|   ├── ...
├── core/
│   ├── settings.go
├── urls.go
└── main.go

About

A django-like template for golang gin web framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages