Skip to content

Pet project to try Gin & MongoDB. Check README for more info

Notifications You must be signed in to change notification settings

rashevskiivv/go-gin-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API to work with books

This project is a pet project to try Gin. Here's a CRUD for 1 entity.

In project were used the following libraries:

  • Gin - Routing
  • Viper - Managing the environment variables
  • GORM - ORM
  • MongoDB - DB
  • Shell - Script to initialize DB (start using and create user)
  • Docker with volumes + Docker-compose - Containerization

Docker

  1. Clone this repository.
  2. Run: docker compose up
  3. Stop in different window: docker compose down OR CTRL+C to terminate the process in the same window.