Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.02 KB

README.md

File metadata and controls

41 lines (28 loc) · 2.02 KB

Story Stains

Backend Frontend codecov

A mood tracker for stories. Find the patterns in your favorite stories.

Design

Heavily inspired by zero2prod and RealWorld in particular CodeIdeal's implementation and snamiki1212's actix version.

Requirements

  • Backend
    • rust (use rustup to install)
    • sqlx-cli (for running migrations)
    • Docker (for running Redis and Postgres)
  • Frontend
  • Deployment
    • Using fly (since using docker other sites are easy to setup)

Putting it all together

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"

Deployment

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.