To run the testbed application run the following commands from the live_state/testbed/
directory:
-
Install Livestate testbed elixir dependencies with
mix deps.get
-
Install Livestate testbed javascript dependencies with
npm install --prefix assets
-
Install dependencies for phx-live-state and build with
npm run setup --prefix ../phx-live-state
-
Install dependencies for use-live-state and build with
npm run setup --prefix ../use-live-state
-
Build Livestate javascript with
mix esbuild default
-
Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S 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