First of all, we need working installations of Elixir and Erlang. The
recommended way to achieve this is via asdf. Once
it's installed and working, you can run asdf install
from the project root to
install the correct versions required (see the .tool-versions
file for
details).
Next, make sure you setup the required environment variables as detailed in
.env
by copying the file to .env.local
and adjusting values as needed.
Please see the Vapor docs for more detail on the dotenv configuration provider.
To create secrets, (e.g. for SECRET_KEY_BASE
), use mix phx.gen.secret
.
Next you can install all dependencies with mix setup
.
- Start the application with
mix phx.server
- To start the application and an IEx console connected to it, use
iex -S mix phx.server
Now you can visit localhost:4000
from your browser.