Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rashevskiivv/go-gin-api
- Owner: rashevskiivv
- Created: 2023-01-15T13:43:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T11:02:58.000Z (over 1 year ago)
- Last Synced: 2024-10-11T05:43:24.865Z (about 1 month ago)
- Topics: docker, docker-compose, docker-volume, dockerfile, gin-gonic, go, golang, gorm-orm, mongodb, mongodb-database, shell, viper-env
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.