Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.41 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.41 KB

TateExplorer

Small webapp to browse the Tate Modern Gallery Collection.

Data is available at: https://github.com/tategallery/collection in csv format.

Being built with Elixir, Dynamo, Postgresql and Redis.

Assuming all dependencies are met:

cp .envrc.sample .envrc

Customize .envrc with your database connection data.

source .envrc
mix deps.get
make dev_setup
mix server

Alternatively, your env can be better managed with Direnv.

Running tests

make test_setup
MIX_ENV=test mix test

Converting the original files

Place csv files in data/ and rename them artist_data.csv and artwork_data.csv.

The original dataset is in UTF-8 with DOS line endings and some unicode issues, so you need to convert it.

brew install dos2unix
dos2unix -n artist_data_original.csv artist_data_unix.csv
cat artist_data_unix.csv | sed 's/–/-/' > artist_data.csv
dos2unix -n artwork_data_original.csv artwork_data_unix.csv
cat artwork_data_unix.csv | sed 's/–/-/' > artwork_data.csv

Resources: