NamesMark / gses_case

A simple HTTP server in Go that sends USD/UAH rates to subscribed users by email.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gses_case

HTTP server in Go that sends USD/UAH rates in to subscribed users by email.

Requirements

Stated Implementation Done
PHP, Go, or Node Go
HTTP server Gin
⠀⠀get:/rate
⠀⠀post:/subscribe
⠀⠀post:/sendEmails
Get exchange rate net/http
Send emails gomail
Periodic jobs robfig/cron
Database sqlite, sqlx
Migration sqlx-migrations
Swagger swaggo
Containerize Docker, alpine
Run migration on start Docker-compose, sqlx-cli
Tests

Evidence

GET /rate:

GET rate worked

Sent emails:

emails sent successfully

Cron job worked (with @hourly setting):

cron job worked

Swagger:

swagger documentation is available

About

A simple HTTP server in Go that sends USD/UAH rates to subscribed users by email.


Languages

Language:Go 94.8%Language:Dockerfile 5.2%