Phoenix Elixir Boilerplate with Phoenix LiveView.
Phoenix LiveView let you build interactive, Real-Time Apps with any need of client-side JavaScript. See more about LiveView here.
The minimal setup requires Elixir and PhoenixFramework to be installed. Starting from scratch please follow this boilerplate:
brew update
brew install elixir
mix local.hex
mix archive.install hex phx_new 1.4.3
mix phx.new hello --no-ecto
cd hello
mix deps.get
cd assets && npm install && node node_modules/webpack/bin/webpack.js --mode developmentmix phx.serverand point your browser to http://localhost:4000
We run several examples of LiveView from the official examples here. We are not using the ecto intentionally, to keep this Phoenix boilerplate simple, without need to attach and configure any database.
-
Pacman http://localhost:4000/pacman
-
Thermostat http://localhost:4000/thermostat
-
Thermostat http://localhost:4000/thermostat
-
Search with Autocomplete http://localhost:4000/search
-
Top (Processes) http://localhost:4000/top
Basic examples of using Controller, View and Templates.
-
Routing http://localhost:4000/hello
-
Query Parameters http://localhost:4000/hello/Loreto