Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.27 KB

README.md

File metadata and controls

63 lines (39 loc) · 1.27 KB

Track App

An app to keep track of personal data.

More details are in the wiki.

Initial Setup for Local Development

Source the script that creates an alias for docker compose:

source ops/alias-docker-compose

Build the docker dev environment:

dc up -d --build

You must run server migrations manually:

# Shell into the container:

  dc exec -it track-server bash

# Then, inside the container:

  diesel migration --migration-dir server/migrations/ list   # Show migrations

  diesel migration --migration-dir server/migrations/ run    # Run migrations

# From there, you can exit the container:

  exit

If you edit docker/dev.yml, web-client/Dockerfile.dev, or server/Dockerfile.dev, bring down the environment and then bring it up again.

dc down
dc up -d --build

The web client is available at http://localhost:8888. The server apis are available at http://localhost:8080/api.

Alternatively, you can start the server with:

dc exec -it track-server bash

APP_ENV="dev" cargo run --bin server

And the client with

dc exec -it track-web-client bash

trunk serve web-client/index.html --address 0.0.0.0 --port 8888