Aridjar / demo_fixtures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DemoFixtures

Introduction

Each branch match one step of my presentation. You can find the presentation here:

How to start

To start your Phoenix server:

  • Build your docker container with docker-compose build
  • Run your postgresql container with docker-compose up -d postgres
  • Get the IP of your docker container with
    $> docker ps
    $> docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' [ID_POSTGRES_CONTAINER]
    
  • In the .env file, put the IP in the host field
  • Run your elixir container with docker-compose up -d elixir
  • Finally, create the database with docker-compose exec elixir mix ecto.create

Now you can visit localhost:4000 from your browser.

About

License:MIT License


Languages

Language:Elixir 60.4%Language:CSS 24.4%Language:JavaScript 8.6%Language:HTML 5.0%Language:Dockerfile 1.6%