Want to try Gust quickly? Start with the Docker example. If you want full customization and extension, follow the instructions below.
Prerequisites
- [x] macOS/Ubuntu
- [x] Elixir must be at least this version
- [x] Postgres
Creating a new Gust app
Replace
my_appwith your app name and run:GUST_APP=my_app bash -c "$(curl -fsSL https://raw.githubusercontent.com/marciok/gust/main/setup_gust_app.sh)"You can check what the install script does here
Configure Postgres credentials in
my_app/config/dev.exs.Run database setup:
Start Gust:
Check
Gust.DSLfor how to customize your DAG.Open
http://localhost:4000/gust/dagsto visualize your app.
Adding Gust to an existing Phoenix app
If you already have a Phoenix project and want to add Gust in place, install
gust_web with Igniter.
If you do not have Igniter installed yet, bootstrap it first:
mix local.hex --force mix archive.install hex igniter_new --forceFrom the root of your existing Phoenix project, install
gust_web:mix igniter.install gust_webIt will mount the dashboard at
/gustin your router, and create adags/folder.Review your database config. Open
dev.exsand setGust.Repo's credentials.Run setup and start the app:
mix ecto.create mix ecto.migrate mix phx.serverOpen
http://localhost:4000/gust/dags.