Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rashevskiivv/go-gin-api

Pet project to try Gin & MongoDB. Check README for more info
https://github.com/rashevskiivv/go-gin-api

docker docker-compose docker-volume dockerfile gin-gonic go golang gorm-orm mongodb mongodb-database shell viper-env

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://gin-gonic.com/) - Routing
* [Viper](https://github.com/spf13/viper) - Managing the environment variables
* [GORM](https://gorm.io/) - ORM
* [MongoDB](https://www.mongodb.com/) - 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.