Hisako1337
HowTo: Livebooks embedded in Phoenix App?
Not sure which category to choose (phoenix? livebook? sorry…).
What I want to achieve is this:
- I have a fresh phoenix app, and programm appy things as usual
- I want to have admin-tasks (fetch/calculate/print some data from the app) in a few livebooks
- I want some quick visualizations (like pie chart about user signups/actions taken, …), as I found it this is not possible to do in a livebook when also linked to a running beam node, but I could install Kino deps in the main app in my case
- I would like to have the exdoc compiled/embedded on deploy, too… so it can also be bundled in the app itself (with some auth in front)
- livebooks can be embedded within exdoc as I have seen somewhere, so having these interactive tools right next to docs/explanations is ideal
- connection host would be localhost directly I guess?
- if it matters, deployment is done on fly.io
- Bonus points: the new phoenix_storybook is just the same in terms of embedding, right? I’d like to have that, too!
… is this feasible? I’d really like to maximize the utility/value of the phoenix app with all the awesome adjacent tools of the elixir ecosystem in one place. I have done the embedded-exdoc part in a previous project years ago, but the direct livebook integration is a new thing for me
Popular in Questions
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
As a follow up to my earlier question:
I have the code compiling and running but not getting a successful login from the rest server. ...
New
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
Hey guys.
I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New
Other popular topics
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
New
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New







