https://github.com/osamaesmail/go-post-api
https://github.com/osamaesmail/go-post-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osamaesmail/go-post-api
- Owner: osamaesmail
- Created: 2021-06-01T14:55:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T11:12:57.000Z (about 4 years ago)
- Last Synced: 2025-01-23T01:14:04.410Z (5 months ago)
- Language: Go
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-post-api
# Architecture
based on 4 layer
* Model
* Repository
* Service
* Handler## Features
- [x] containerized using `docker` and `docker-compose`
- [x] API Documentation using `swagger` (auto generated)
- [x] `JWT` authentication
- [x] Caching using `redis`
- [x] `pagination`
- [x] `validation`
- [x] Middlewares `CORS`, `Rate` `Limit`, `Logger`, `Recover`
- [x] Graceful shutdown
- [ ] Code coverage
- [ ] Benchmark
- [ ] Code Docs## Requirements
* using docker
* docker
* docker-compose
* without docker
* golang
* mysql
* redis
## Install using docker
* run `make compose.up`## Run without docker
* run `make launch`## Run tests
* run `make test`
* to test with no cache run `make test.nocache`