You can visit a demo in a heroku free dyno
to check a live version of this project.
- note that heroku free dyno could delay up to 30 seconds to wake up.
To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Populate your database with following command (on the database console):
COPY cities(state, name, uf, inserted_at, updated_at) FROM 'YOUR_PATH/data/cities.csv' WITH (FORMAT CSV, DELIMITER ',', HEADER);
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000/api/graphiql
from your browser.