A mood tracker for stories. Find the patterns in your favorite stories.
Heavily inspired by zero2prod and RealWorld in particular CodeIdeal's implementation and snamiki1212's actix version.
- Backend
- rust (use rustup to install)
- sqlx-cli (for running migrations)
- Docker (for running Redis and Postgres)
- Frontend
- flutter (To install go to Flutter install, it takes a while ...)
- Deployment
- Using fly (since using docker other sites are easy to setup)
Using the Dockerfile will build a release version of the flutter front end which will be served by the actix backend. A parameter needed to be set is the FRONT_BASE_URL, which is the url called for doing requests to the backend api.
docker build --tag storystains --file Dockerfile . --build-args FRONT_BASE_URL="http://localhost:8080/api"
Currently using fly.io with their Postgres instance and using a Redis instance.
flyctl deploy --remote-only
Listed in the fly toml are secrets needed to be set on the instance. Other configuration is in configuration for the backend, and in AppConfig for the front.