/livebook_plug

Primary LanguageElixirMIT LicenseMIT

Livebook Plug


logo

The elixir ecosystem for documentation is pretty good (ex_doc), but often you want to see the pipeline or data workflows of your application happening while you execute or create documentation for a real use case for your app, with this in mind, I use in this project the livebook for automate code and data workflows with interactive notebooks but with little bit difference in your approach default, here i connect the node of livebook container in other node of elixir application with this, I can execute and build my livebooks with struct, schemas, database of an external application.

Getting started

Inside an script:

  export $(cat .env | grep -v '#' | sed 's/\r$//' | awk '/=/ {print $1}')
  docker compose run broker mix deps.get
  docker compose run broker mix ecto.create
  docker compose run broker mix ecto.migrate
  docker exec -it broker iex --name broker@broker --cookie leruaite_secret -S mix

or

docker compose run broker mix deps.get docker compose run broker mix ecto.create && docker compose run broker mix ecto.migrate && docker compose up --build -d && docker exec -it broker iex --name broker@broker --cookie leruaite_secret -S mix

This idea can be more explained in this livebook.

Peek 2023-10-25 15-42

Still don't know livebook ? read about here.
Still don't know exdoc ? read about here.