Skip to content

User repository pattern to create project. All the files have created including database connection. We can use this code to start fresh project.

Notifications You must be signed in to change notification settings

Abhishek-Shukla1989/Go-gin-Boiler-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This project demonstrates a basic setup of a RESTful API with user management using Go, Gin, GORM, PostgreSQL, and Google Wire. It supports basic CRUD operations.

1. Installation

Use below command to install and move to root directory

git clone https://github.com/Abhishek-Shukla1989/Gogin-boiler.git
cd gogin-boiler

2. Install dependency

go mod tidy

3. Make sure Postgresql installed and running

createdb restdb

4. Setup env variable

db_dsn = your_database_url
POST = add your port i.e 8000/9000

2. Run the project

air // this will run the project 

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

User repository pattern to create project. All the files have created including database connection. We can use this code to start fresh project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages