Skip to content

Nezteb/wildfires

Repository files navigation

Wildfires

Building / Testing

Setup commands:

# Start dependency services
docker compose up --detach \
  --remove-orphans \
  --renew-anon-volumes \
  --force-recreate \
  postgres otel jaeger

# Build
mix deps.get
mix compile
mix ecto.create

# Debugging/Testing
iex -S mix
# or
iex -S mix run --no-start

# Run tests
MIX_ENV=test mix ecto.create 
mix test

Once your server is running, you can view the app at: http://localhost:4000/

Deploying

# Run entire stack in container
docker compose up --detach \
  --remove-orphans \
  --renew-anon-volumes \
  --force-recreate \
  --build

You can still view the app at: http://localhost:4000/

Once running the entire docker stack (which uses MIX_ENV=prod), you'll also be able to see Jaeger telemetry here: http://localhost:16686/search

If I'm running the app (it's on most of the day), you can also see it at: https://wildfires.nezteb.net/

Screenshots

The app:

App Demo

Jaeger:

Jaeger Demo

Links

TODO

  • [?] Perimeter data
  • Packaging and deployment plan
  • Telemetry/Monitoring of workload
  • UI to visualize current fires
  • Unit/Integration tests