To start your Phoenix server:
- Do you have docker and docker compose Installed? If not, head over to Docker's website and install a version of Docker for your operating system of choice.
- Build the app
docker-compose build
- Start it
docker-compose up
Now you can visit localhost:4000
from your browser.
PgWeb
By default the docker-compose up
will exposes Pgweb (a web-based database browser for PostgreSQL) in localhost:8081
Available URL schemes to connect:
postgres://postgres:postgres@pg_read_model:5432/banking_app_dev?sslmode=disable
postgres://postgres:postgres@pg_eventstore:5432/banking_app_eventstore_dev?sslmode=disable
To run the test suite:
docker-compose run web /bin/bash
# Run inside of the container
mix test
# or run the command below to see
# the test results with coverage statistics
mix coveralls
# open ./cover/excoveralls.html