An email and sms notification system
The application will check for Env variables before booting up. The .env-example is used as a reference, please keep this up to date.
Start up a local instance of the application, using docker build + serve
From terminal run: task run
From terminal run: task integration-test
- Go 1.16
- Docker & Docker Compose
- Taskfile
Http = internal/transport/http
Service = internal/comment/comment
Repository = internal/db
flowchart LR
/api/v1/endpoint-name <--> Http <--> Service <--> Repository <--> Postgres
Service <--> Client
sequenceDiagram
cmd/server/main->>+db: NewDatabase()
cmd/server/main->>+db: MigrateDb()
db->>+cmd/server/main: *db
cmd/server/main->>+internal/service: NewService(*db)
internal/service->>-cmd/server/main: *service
cmd/server/main->>+internal/transport/http: NewHandler(*service)
internal/transport/http->>-cmd/server/main: serve http endpoints