Newsletter app: manage subscribers and publish newsleters.
Launch PostgreSQL and Redis containers:
./scripts/init_db.sh
./scripts/init_redis.shLauch pgAdmin Docker container if you want to inspect the database:
./scripts/init_pgAdmin_container.sh
# open localhost:80 and login with user@domain.com (password: SuperSecret)
# add database
# use host.docker.internal as HostName to get the host address for the PostgreSQL containerThen:
# start server
cargo watch -x run
curl localhost:8000/health_check -v # should return 200 OKNow you can go to http://localhost:8000/login and login with admin everythinghastostartsomewhere.
Launch PostgreSQL and Redis containers:
./scripts/init_db.sh
./scripts/init_redis.shThen cargo test.