You'll need Elixir, Node, and Postgresql installed.
# Install Elixir deps
mix deps.get
# Install Javascript deps
npm install
# Start the database
pg_ctl start
# Create and migrate database
mix ecto.setup
MIX_ENV=test mix ecto.setup
# Run the tests
mix test.watch
# Run the server
mix phoenix.server
You may need to ensure the postgres
database user has the password
postgres
, and that they have the required permissions.
CREATE ROLE postgres LOGIN;