I’m in the process of doing a series where I build a site for the new podcast I’ve recently started with Justin Vincent of Techzing.
It starts with LiveView version 0.4.0, but I do upgrade as the series goes on. It’s definitely easiest for you if you use the same versions I do and upgrade when I do!
You can follow the full YT playlist where I’ll add videos as I record them or look at the individual links to episodes as I add them to this thread.
The second episode is all about planning out my DB schemas. I go over what I set up for Alchemist Camp itself, and how a simpler design will work for a podcast site that has fewer kinds of content and fewer social features.
If you just want to see the coding itself, you can skip this one.
This episode builds the live views and templates for the show and edit pages, fixes a few bugs and finishes converting users from traditional CRUD to LiveView.
Episode 10 of the series is all about webpack, fonts, sass and styling the front-end. No LiveView in this one, but it’s useful if you ever want to add custom fonts and logos!
You mentioned earmark being kind of slow and also name dropped cmark.
Is there a reason you’re not using cmark in the project?
I ended up using it here. Mainly because for comments and other markdown areas of the site I wanted a markdown preview which means every time the user flips between writing and previewing, it hits the server to do the compilation.
cmark also handles safe html out of the box. But it does look like it’s not really maintained anymore, although it appears to work.
I like Earmark because it’s being maintained and it’s all Elixir so it’s a bit quicker for me to see how it works. Also I don’t remember if cmark was missing GFM or something like that when I checked it out.
Ideally I’d just use a PEG to define my own Markdown to HTML compiler but it’s pretty low on my list of priorities.