ElixirCasts

ElixirCasts

Forum Sponsor

Phoenix LiveView Tutorial (ElixirCasts)

Love LiveView and games?

I’ve published a new tutorial where we build a clone of the popular word guessing game, Wordle with Phoenix LiveView.

The tutorial provides step-by-step instructions that show you how to leverage the power of Phoenix LiveView to build dynamic, interactive web applications.


Let’s build an application, together!

Dive into the world of real-time web applications with this comprehensive Phoenix LiveView Tutorial.

In this series we’ll build a game using Phoenix LiveView to create our own version of the popular word-guessing game, Wordle.

Perfect for both beginners and experienced Elixir developers, this tutorial provides step-by-step instructions that show you how to leverage the power of Phoenix LiveView for building dynamic, interactive web applications.

  • 13 episodes, totaling 1 hour and 32 minutes!
  • Craft a dynamic, real-time Wordle-clone web application using Phoenix LiveView.
  • Deepen your understanding of Phoenix LiveView’s architecture and capabilities.
  • Acquire valuable Elixir programming skills applicable to a variety of web applications.
  • Create an interactive, user-friendly game!

Episodes in this Phoenix LiveView course

Part 1
In this episode we begin creating our game by generating a new Phoenix LiveView application. Then we’ll set up the database, customize layouts with HEEx and Tailwind CSS, and update the router.

Part 2
This episode details setting up a Wordle-like game in Phoenix LiveView, covering creating two different database tables, populating them with 5-letter words using the WordList and NimbleCSV packages, and configuring routes and LiveView components.

Part 3
In this episode we’ll build a grid for our game. To do that we’ll create a couple different LiveView components to use for the cells, rows, and grid.

Part 4
In this episode we’ll create a keyboard component for our game. Using LiveView LiveComponents, we’ll add a dynamic keyboard to the application, and style it with Tailwind CSS and DaisyUI.

Part 5
In this episode we’ll start implementing our game logic. We’ll manage player guesses using Schemaless Ecto Changesets. Together we’ll walk through creating a module to handle guess validation and a module to encapsulate game logic.

Part 6
In this episode we’ll build the functionality that allows a player to add letters to their guess. We’ll update our LiveView to handle events from the keyboard and use them to update the game grid.

Part 7
In this episode, we update our game to allow players to remove letters from their guesses. This involves updating our KeycapComponent to send events to our LiveView.

Part 8
In this episode we update our game, allowing players to submit their guesses. We’ll build functionality to check if the guess is a valid word, comparing it against the game’s solution, and then updating the game’s state accordingly.

Part 9
In this episode we’ll update our game and add feedback for player guesses. We’ll update our LiveView to handle various guess outcomes. We’ll use flash messages to display the results of each guess.

Part 10
In this episode, we’ll update the guess feedback in our game by implementing custom JavaScript hooks and animations.

Part 11
In this episode, we’ll improve the guess feedback for our game with JavaScript hooks. We’ll focus on updating the background of a guess, to indicate the status of the guess.

Part 12
Similar to our last episode, here we’ll dynamically update the backgrounds of the keycaps on our game keyboard using JavaScript Hooks.

Part 13
We’ll let people play our game as much as they want! In this episode, we’ll refine the game’s flow and user experience by leveraging Phoenix LiveView to start a new game for users.

Price: Included as part of ElixirCasts subscription.

Most Liked

ElixirCasts

ElixirCasts

Forum Sponsor

This tutorial is now included with the Alchemist’s Edition subscription and the first episode is free for everyone!

AstonJ

AstonJ

I’ve been on to the ElixirCasts team to consider creating a course for years, so it’s nice to see they’ve finally got around to it! :smiley:

ElixirCasts

ElixirCasts

Forum Sponsor

Better late than never :wink:

Where Next?

Popular in Courses Top

AstonJ
Looks neat :023: by @caike LEVEL 1 Sparks of Data Get to know Phoenix and learn how to read existing data from the database. ...
New
AstonJ
New, from @danielberkompas Learn how to build fast, dependable web apps with Phoenix in this series of in-depth, step by step screenc...
New
PJUllrich
Now available on Indie Courses Hi folks! Peter Ullrich here :slight_smile: I’m happy to announce my second video course called Building ...
New
mat-hek
Hi everyone! We just released the Elixir Language Tour guide – an interactive intro to Elixir. The guide itself is written in Elixir an...
New
Cruz
Hello Everyone, Early access to the " Full-Stack GraphQL with Absinthe, Phoenix, and React" video course is now available on the Pragmat...
New
zkessin
I have created a new Product, based on The Weekly Python Exercise I am now releasing Weekly Elixir Exercise, an inexpensive way to get pr...
New
AlchemistCamp
I’ve finished writing up the show notes for my free 13 screencast series “Ecto Beginner”! :partying_face: You’ll see them with notes at ...
New
alvises
Hello everyone! I’ve almost finished recording my Elixir and LiveView course! It’s packed with hours of in-depth tutorials, tips and app...
New
alvises
Hi everyone, I’ve started releasing these LiveView lessons (videos and articles), which are free extracts taken from the bigger course B...
New
reddhouse
Please note: This course contains the use of inaccurate terminologies and may lead to confusion - see comments in the thread below for d...
New

Other popular topics Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New

We're in Beta

About us Mission Statement