Skip to content

seidelmaycon/elixir_city_state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirGraphql

Demo

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.

Setup

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.

Releases

No releases published

Packages

No packages published

Languages