This is an example golang backend application using PostgreSQL database with clean architecture.
- Go Web Framework (gin-gonic)
- Containerize (docker)
- Swagger (swaggo)
- CRUD operations
- JWT for authentication
- Mock: golang/mock
- PostgreSQL Driver: GORM
- Test Assertions: stretchr/testify
# download the project
git clone https://github.com/aabdullahgungor/personel-resume-api.git
cd personel-resume-api
docker-compose up --build -d
http://localhost:8000/api/v1
- GET localhost:8000/api/v1/personals
- GET localhost:8000/api/v1/personals/:id
- POST localhost:8000/api/v1/personals
- PUT localhost:8000/api/v1/personals
- DELETE localhost:8000/api/v1/personals/:id
- ........
http://localhost:8000/api/v1/swagger/index.html
# Run tests
go test ./test/test_controller -v
go test ./test/test_service -v