pulse-api

module
v0.0.0-...-b46d3ee Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: BSD-3-Clause

README

About

An email and sms notification system

Preflight

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 Local Instance

Start up a local instance of the application, using docker build + serve

From terminal run: task run

Run Testing Suite

From terminal run: task integration-test

Operating System Tools Needed

Overview

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

Directories

Path Synopsis
cmd
server command
internal
db

Jump to

Keyboard shortcuts

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