- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.create && mix ecto.migrate
ormix ecto.setup
to create, migrate and seed. - Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
oriex -S mix phx.server
if you want to run within a REPL. - Create .env file to run locally with ENV_VARS for basic_auth. .env should look something like this.
#.env
export BASIC_AUTH_USERNAME=(replace with your login)
export BASIC_AUTH_PASSWORD=(replace with your password)
Now you can visit localhost:4000
from your browser.
- Run
mix credo
to see a list of code analysis suggestions via Credo. NOTE: We are using the defaults Credo provides.
Ready to run in production? Please check our deployment guides.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix