An example app Phoenix project that sets up:
Aside from the additions above, this is a fairly standard Phoenix project. If you clone this project, you will need to have Postgres and Node.js installed.
To start your Phoenix server:
-
Run
mix setup
to install and setup Elixir and Node.js dependencies -
Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Helpful Resources
-
Phoenix Asset Management Guide
Shows a basic
build.js
script and how to remove ESBuild mix dependency