/go-gin-api

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

Primary LanguageGo

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.