mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
| .. | ||
| assets | ||
| config | ||
| lib | ||
| priv | ||
| test | ||
| .formatter.exs | ||
| .gitignore | ||
| Dockerfile | ||
| mix.exs | ||
| mix.lock | ||
| README.md | ||
Example
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
Testing
- Run all tests:
mix test(by default this excludes E2E tests; usemix test --only e2eto run browser tests). - Run only E2E (browser) tests:
mix test --only e2e
E2E test modules must use @moduletag :e2e. E2E tests use Wallaby and serve the app from built assets (priv/static). After changing Svelte (or other frontend) code, rebuild before E2E so tests see your changes:
mix assets.js && mix test --only e2e
Or use the alias (builds assets then runs tests; pass --only e2e to run only E2E):
mix test.e2e --only e2e
You need Chrome and ChromeDriver on your PATH for E2E. If Chromedriver is not installed, run mix test --exclude e2e to run the rest of the suite.
Ready to run in production? Please check our deployment guides.
Learn more
- 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