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
asdfas 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
.envfile - Load Local
.envfile- For
zshusers 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 installinside theassetsdirectory - 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.extractThen merge those into the localized *.po-files:
mix gettext.merge priv/gettextYou can now edit the translations using Poedit or similar software.
See .env.example
