repositorypackage
0.0.0-20220825122125-786533aa63e7
Repository: https://github.com/fuerback/subscription.git
Documentation: pkg.go.dev
# README
Subscription
The project is a Subscription service using Golang and REST API that uses gorilla/mux as router framework, SQLite as a database and Docker to build.
The project is also using Clean Architecture.
TODO
- Json validator
- Context timeout
- Integration test
- Cache
- Error handler
- Test cover
- Add audit columns in DB
Getting started
Locally
To run project locally you need to export the environment variable PORT=:8080
or to other port to your choice and.
You must have installed:
- Golang >=1.16
make run-local
make tests
Docker
make docker-image
make docker-run
or just
make docker-up
The default PORT to test via Docker is 8080
to run tests on Docker:
make docker-tests
Documentation
The API documentation ./docs/api/swagger.yaml The database schema ./docs/db/v1.0.0-schema.sql The database model ./docs/db/model.png