/frontend-masters-xstate-v2

Frontend Masters XState Workshop v2

Primary LanguageJavaScriptMIT LicenseMIT

State Machines & XState Workshop

Welcome to the Frontend Masters workshop on JavaScript State Machines and Statecharts with XState, v2! In this workshop, we will be learning about software modeling with state machines and statecharts by building a real-world media player application.

Getting Started

  1. Run npm install or yarn install
  2. Run npm run dev or yarn dev
  3. Navigate to any of the exercises:

What we're building

In this workshop, we will be building a media player. This app will allow you to like/ unlike a song, represented by the heart symbol. The next option the app will allow you to do is thumbs down the song, which will remove it from your playlist. The play/pause action will allow you to play or pause the current song. Then we have the forward/next option of the app that will allow you to skip the current song and load the next in queue. Next, you will have the option to mute/ unmute the current song that is playing.

media-player

We will be using state machines, state charts, and the actor model to build these features on our media player app.