Skip to content

technicalcapt/petal-stack-live-example

Repository files navigation

How to run project

  1. Install docker (https://docs.docker.com/engine/install/) and docker-compose
  2. Create .env file in the root directory and add your environment variable to the following
DATABASE_URL=postgres://postgres:postgres@db:5432/peta_stack_example_dev
SECRET_KEY_BASE=YOUR_SECRET_KEY_BASE

You can generate secret key by running: mix phx.gen.secret

  1. Execute command below in the shell
`$ docker-compose up
  1. Navigate to localhost:4001 in the browser