"Elixir and Phoenix are fast. For example, tests of Elixir’s performance show much better results during software testing services than those for Ruby, and Phoenix response times are measured in microseconds. Impressive, isn’t it? Speed matters a lot when we speak about user experience. It is great to see that the app reacts and responds quickly to all actions. Additionally, good performance helps to save energy and money." source
Install Docker and create an app image: docker build -f docker/app/Dockerfile -t app .
Get it up and running via Docker Compose: docker-compose up
If you need to use postgres, seperately you can have it by running: docker build -f docker/db/Dockerfile -t db .
Follow this instruction to install Elixir on your computer.
Install Postgres and create database called minitwit_elixir_dev
on port 5432. Follow this instruction
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
and make sure it is migrated usingmix ecto.migrate
- 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 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