Let's light this candle
Prerequisites
- Erlang/Elixir
- Node.js
Env variables
HOSTNAME
ASSET_HOST
PORT
MIX_ENV
DB_NAME
DB_USER
DB_PASSWORD
DB_HOST
ADMIN_USER
ADMIN_PASSWORD
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
Steps
- Create database corresponding to your
DATABASE_URL
. I useecto://short_stuff_dev:postgres@db/short_stuff_dev
locally. - Install dependencies with
mix deps.get
- 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.
Prerequisites
- Docker
Steps
docker-compose up --build