Search⌘ K
AI Features

Setting Up the Project

Explore how to establish the foundational project for a real-time sneaker store using Phoenix and Elixir. This lesson guides you through copying the project base, running tests, seeding the database, and starting the server. You will learn to verify the initial web view and handle frontend updates before implementing real-time features.

We'll cover the following...

Setting up the project base

We’ll need the project base to start this chapter. We should copy the base project into a working folder.

After setting up the project base in a folder that we can work from, we can verify that everything is working by running the test suite.

Shell
mix deps.get && mix ecto.setup && mix test
Compiling 2 files (.ex)
Generated sneakers_23 app
...............
Shell
npm --prefix assets install
Finished in 0.1 seconds
15 tests, 0 failures

Finally, let’s test that the web view is working correctly. We use the following commands to seed the database and then start ...