Real World Phoenix |> Pow Auth |> User Roles |> LiveView |> Sending Emails
Need following thing to install in Computer
- Installed Elixir 1.10.4
- Installed Erlang OTP 23 or more. You will find the description of installing Erlang in Elixir Installation
- Installed Phoenix Framework 1.5.3
- Installed PostgreSQL
- Installed Node.js
- Installed inotify-tools (for linux users)
- If any of package download or install won't match with your destro. Search online for better way.
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create new .env file with
cp .env.example .env
- Generate
SIGNING_SALT
value by runningmix phx.gen.secret 32
- Put the
DB_USER
,DB_PASSWORD
andSIGNING_SALT
values in.env
- Load the
.env
values withsource .env
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
inside theassets
directory or remain in project dir and runnpm install --prefix assets
- Start Phoenix endpoint with
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