To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- 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
We use Wallaby for end-to-end testing. If you want to run Wallaby you'll have to follow their instructions and install the ChromeDriver.
To execute wallaby tests run:
mix test --only wallaby
For example, we have a /screenshots
folder with screenshots of every page at different screen sizes in order to ensure consistent responsive styles across devices.
We use .webp images for performance optimization. We can convert an image to .web using the webp library
$ sudo apt install webp
Then simply convert the image.
$ cwebp -q 60 my_image.png -o my_image.webp