Check our getting started guide to begin your journey with Hexagonal architecture.
# create phoenix project
mix phx.new hexagonal-architecture-in-elixir --app blog --no-html --no-assets --no-gettext --no-dashboard --no-live --no-mailer
# postgres docker run
docker pull postgres
docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.