subscription

command module
v0.0.0-...-786533a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 16 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
adapter
core
domain/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
dto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL