To start your Phoenix server:
- Copy
config/dev.secret.example.exstoconfig/dev.secret.exsand overwrite the settings as needed - Install dependencies with
mix deps.get - Create and migrate your database with
mix ecto.setup - Install Node.js dependencies with
cd assets && npm install - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000 from your browser.
You will want to create an admin user so you can log into the admin panel. You can do this by opening a REPL with iex -S mix and running the following (replacing with your info):
Mutua.People.create_admin(%{first_name: "Firstname", last_name: "Lastname", email: "me@example.com", password: "somepassword", password_confirmation: "somepassword"})
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