This project is a sample REST APIs with microservices for my study and my practice.
- Golang
- Gin-Gonic framework
- Gorm framework
- MySQL(MariaDB)
- RESTful API
- Microservices Architecture
- Hexagonal Architecture
- Clean Architecture
- Docker
API lists
- GET /tokenz
- GET /resources
- GET /resources/ID
- POST /resources
- PULL /resources/ID
- DELETE /resources/ID
- Use Gin-Gonic framework
- Configuration in environment
- Gracefully shutting down
- JWT authentications
- Dockerfile
- for Dababase connection: mtxr.sqltools-driver-mysql
- for API testing: humao.rest-client
maria: to start MariaDB docker container
restapi-image: to build sample REST APIs docker image
restapi-container: to start sample REST APIs docker container
start MariaDB, REST API contianer
run command:
- make maria
- make restapi-image
- make restapi-container
run file test example for API testing
- test/create_data.http
- test/read_data.http
- test/update_data.http
- test/delete_data.http