Skip to content

dhairyanadapara/email-newsletter

Repository files navigation

Email Newsletter

Rust

Prerequisites

First Run

# install psql
# Follow steps from website
# install sqlx
cargo install sqlx
# init database
./scripts/init_db.sh

DB migration

SKIP_DOCKER=true ./scripts/init_db.sh

SQLX offline data

cargo sqlx prepare -- --lib

Build docker image

docker build --tag email-newsletter --file Dockerfile .

Deploy to Heroku

heroku login

docker login --username=<email_add_used_to_signup_to_heroku> password=$(heroku auth:token) registry.heroku.com

heroku container:login

docker images

docker tag email-newsletter registry.heroku.com/rust-email-newsletter/web

heroku container:push web -a rust-email-newsletter

heroku container:release web -a rust-email-newsletter

url: https://rust-email-newsletter.herokuapp.com

About

Email newsletter web app backend in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published