Setting Up the Project

Learn how to initialize our sneaker store.

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.

Press + to interact
mix deps.get && mix ecto.setup && mix test
Compiling 2 files (.ex)
Generated sneakers_23 app
...............
Press + to interact
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 the server.

Press + to interact
mix ecto.reset && mix run -e "Sneakers23Mock.Seeds.seed!()"
iex -S mix phx.server

When we ...