Friday Picks 025

Read more →

Phoenix 1.4 with Bootstrap, jQuery, Bootstrap Notify, SASS, and Webpack

I’m currently working through Mastering Phoenix Framework by Shankar Dhanasekrann. The book teaches you how to build a shop application with Test-Driven Development using Phoenix. But the code uses Phoenix 1.3. Phoenix 1.3 still uses brunch for JavaScript asset generation. And the framework ships with Bootstrap for CSS. In v1.4 the authors replaced brunch with webpack. And now Phoenix uses Milligram, a minimalist CSS framework, instead of the heavyweight Bootstrap.
Read more →

Friday Picks 012

Here are some things I’ve found useful this week or that I enjoyed: The Architecture of Open Source Applications - some free books on architecture! Use Svelte with SASS/SCSS in VSCode - add SASS to your Svelte project An Introduction to Domain-Driven Design - DDD w/ TypeScript - provides a good overview on DDD How to make your NodeJS application or API secure - some beginner-friendly advice on how to tackle security Mastering Phoenix Framework - free online version of a guide to Phoenix with TDD Building a JSON API in Elixir with Phoenix 1.
Read more →

Phoenix: Use Ecto to Recreate Your Database

Today I learned that it’s a bad idea to drop a PostgreSQL table directly with PGAdmin. Afterwards, I got tons of errors, because the table was missing. I you want to re-create your database from scratch, you should use Ecto. If you want to completely roll back your database and re-create it, use: mix ecto.reset From Codebase: reset is the equivalente of running the following commands: mix ecto.
Read more →

Phoenix LiveView Primer

I can’t help myself - I’m too enamored with Elixir and Phoenix. If you want to see what’s so exciting about Phoenix’s new features, check out the videos linked below by Dennis Beatty. He shows how to write two simple applications (a counter and a todo app) with Phoenix LiveView - no JavaScript! What is Phoenix Liveview? Phoenix LiveView is an exciting new library which enables rich, real-time user experiences with server-rendered HTML.
Read more →