To start your Phoenix server:
- Install
wkhtmltopdf
- Install
poppler-utils
(brew install poppler
,apt-get install poppler-utils
,apk add poppler-utils
) - Install Elixir / Node / Erlang using
asdf
as specified in.tool-versions
- Start Database
$ docker volume create postgres
$ docker run \
--restart always \
--name postgres \
-v postgres:/var/lib/postgresql/data \
-p 5432:5432 \
-d \
-e POSTGRES_PASSWORD="" \
-e POSTGRES_USER="root" \
-e POSTGRES_HOST_AUTH_METHOD="trust" \
postgres:latest
- Install dependencies with
mix deps.get
- Create Local
.env
file - Load Local
.env
file- For
zsh
users I recommend https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv - Using
npx dotenv-cli `ps -o fname --no-headers $$
you can load all env variables into a new shell instead
- For
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
inside theassets
directory - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Extract all translation strings to create *.pot
-files:
mix gettext.extract
Then merge those into the localized *.po
-files:
mix gettext.merge priv/gettext
You can now edit the translations using Poedit or similar software.
See .env.example