alexslade
Livebook_env - a tiny library to import .env files in livebooks
I’ve started to use livebooks as living documentation of the progress of my projects. E.g. if I need to explore an API to create a tool that monitors it, I’ll start with a livebook to explore the examples. I find this much more long-lived than using an API exploration tool like Postman.
I instantly hit the issue of configuration, wanted to use standard .env files for secrets, private keys etc. I couldn’t find any solutions to this, so I modified the dotenv library and release livebook_env - a little utility for important .env files inside livebooks.
Use it like this:
Mix.install([
{:livebook_env, "~> 1.0"}
])
LivebookEnv.import_dotenv("/path/to/your/project/.env")
Obviously this is geared towards local development, and teams of people who also share .env files. It’s not intended to be a replacement for live online collaboration around secrets.
Most Liked
aiko
Popular in Announcing
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









