This project is rewrite of this excellent PHP Laravel + Livewire tutorial project.
Since laravel livewire
is inspired by phoenix liveview
, I figured I can
also follow along using the elixir+phoenix stack.
The live version can be seen here
This app requires themoviedb API. Get your API Key & export it as TMDB_API_KEY environment variable.
export TMDB_CLIENT_API_KEY=your_api_key
export SESSION_ENCRYPTION_SALT=$(mix phx.gen.secret 64)
export SECRET_KEY_BASE=$(mix phx.gen.secret 64)
export ADMIN_USER=live_dashbaord_basic_auth_user
export ADMIN_PASSWORD=live_dashbaord_basic_auth_password
To start your Phoenix server:
- Setup the project with
mix setup
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix