To start your Phoenix app:
- Install dependencies with
mix deps.get- If you want to use Docker for PostgreSQL in local development
- Start PostgreSQL server with
docker-compose up -d - Override default usename for Phoenix to log in PostgreSQL with
export PGUSER=postgres
- Create and migrate your database with
mix ecto.create && mix ecto.migrate - Install Node.js dependencies with
cd assets;yarn install;cd - - Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000 from your browser.
This project includes test.watch, credo, and dialyxer. You can run the test simply with:
mix test.watch
to run type checking with dialyxer:
mix dialyzer --plt
first, then simply
mix dialyzer
after.
docker build -t elixir_tw .docker run -it -d elixir_tw:latest bashdocker cp <IMAGE_ID>:/app/rel/elixir_tw/releases ./rel/docker_reldocker rm -f <IMAGE_ID>
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: http://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix