To start your Phoenix server:
- Create your .env file with this template
export DB_HOST="host"
export DB_PORT="5432"
export DB_USER="postgre"
export DB_PASSWORD="postgre"
export DB_NAME="ex_21_development"
- Install dependencies with
mix deps.get
- Create and migrate your database with
make setup
- Install Node.js dependencies with
make install
- Start Phoenix endpoint with
make development
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