Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →
More specifically a bare bones health check and another separate check that connects to databases and other services you might have.
We're going to look at a Phoenix LiveView app for this example but this applies to any web app using any web framework.
This came up recently while updating an application to use Phoenix 1.6 and wanting to add a variable to a list of HTML classes.
Here's a few patterns I've picked up based on using Docker since 2014. I've extracted these from doing a bunch of freelance work.
José Valim and I asked developers how they would solve a specific problem in their language of choice. How would you do it?
In this video, we'll go over both the why and how to set up a number of web app servers to log to stdout.
In this video, we'll go over how to set up a health check endpoint in Flask and use the free UptimeRobot service to monitor your uptime.
In this video, we'll loop over data coming in from the back-end and display it in a responsive multi-column layout.
In this video, we'll go over using a script to make sure your database is ready before running automated tests. Perfect for CI.
Here's a number of questions you can ask yourself and tools you can use to help improve the quality of your code.
This ended up being a fun exercise to learn Elixir a little better and I also realized how easy it was to do in Python too.
In this video I go over testing and documenting the features of an audio player but the steps taken could be applied to any code base.
Over the years I've learned a few languages / web frameworks and recently picked up Elixir / Phoenix. Here's what I've learned.
It currently supports Phoenix, Rails, Django and Laravel, and this is a 30 minute video demoing how it works and how it was built.
In this 15 minute video, we go over 1 way to quickly break down a UI feature which happens to double as a cheat code for writing tests.
When starting a new job or contributing to open source, learning a new code base can be intimidating. Here's how you can jump in quickly.
Watch a 90 minute video where I take a new project idea and start breaking it down so you can see how to do it for your own apps.
Being able to create dozens or thousands of records to populate your database in development has a lot of advantages.
I'm no where near an Elixir veteran but I found myself refactoring some imperative code into more idiomatic Elixir and it made me happy.
There's lots of ways to debug code, but often times problems become amplified when you can't visualize what's happening.
Let's talk about when it might be a good or bad idea to start using microservices. SPOILER ALERT: it's not the same for every project.
Most web frameworks come with a way to manage database migrations but they can be very tedious to use early on in a project.
Phoenix 1.4 is set to use Webpack but Phoenix 1.3 currently uses Brunch. Here's how to get Webpack working with Phoenix 1.3.
You can use this method with any package manager that has the concept of a lock file to help with dependency management.
Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.