This is application for subscription on periodic weather updates. To keep it simple, it was written in a monolithic way.
- Docker
- Just
In order to provide needed tokens and URI's, setup environment variables:
WEATHER_API_KEY="your weatherapi key"
WEATHER_API_ADDR="http://api.weatherapi.com/v1/current.json?key=%s&q=%s&aqi=no"
POSTGRES_DB="subscriptions"
POSTGRES_USER="user"
POSTGRES_PASSWORD="1234"
SENDER_MAIL="your sender email"
SENDGRID_API_KEY="your sendgrid api token"
BASE_URL="localhost:8000"
HTTPS=0
PROD=0
PROD_DB_URL="your prod db"
- Building
just build
- Running
just run
- Dropping running containers
just clean
- Starting
just start
Weather Subscription(Railway)