To start your Phoenix server:
-
Configure database PostgreSQL with
sudo su postgres,psql -U postgres -d pm_usersthen insert sql file with\i 'path/to/pm_users.sql' -
Install dependencies with
mix deps.get -
Create and migrate your database with
mix ecto.setup -
Install dependencies with
cd assets && npm install -
Start Phoenix endpoint with
mix phx.serveror 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