https://github.com/cloud8421/science-explorer
Webapp to browse the London Science Museum collection (http://www.sciencemuseum.org.uk/)
https://github.com/cloud8421/science-explorer
Last synced: about 1 month ago
JSON representation
Webapp to browse the London Science Museum collection (http://www.sciencemuseum.org.uk/)
- Host: GitHub
- URL: https://github.com/cloud8421/science-explorer
- Owner: cloud8421
- Created: 2013-11-29T12:39:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-02T17:04:25.000Z (over 12 years ago)
- Last Synced: 2025-01-13T01:29:51.771Z (over 1 year ago)
- Language: Elixir
- Size: 207 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ScienceExplorer
Small webapp to browse the London Science Museum items collection.
Data is available at: in csv format.
Being built with Elixir, Dynamo and Postgresql.
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](https://github.com/zimbatm/direnv).
## Running tests
make test_setup
MIX_ENV=test mix test
## Converting the original files
Place any file in `data/` and rename it `items1.csv` (hardcoded for now).
The original dataset is in Latin1, so it needs to be converted to utf-8 before being
imported.
iconv -f ISO-8859-1 -t UTF-8 data/items1.csv > data/items1-utf8.csv
## Deploy on Heroku
Assuming you have the Postgresql addon installed:
heroku config:set BUILDPACK_URL="https://github.com/cloud8421/heroku-buildpack-elixir.git" -a YOUR_APP_NAME
git push heroku master
Resources:
* [Elixir website](http://elixir-lang.org/)
* [Elixir getting started guide](http://elixir-lang.org/getting_started/1.html)
* [Elixir docs](http://elixir-lang.org/docs)
* [Dynamo source code](https://github.com/elixir-lang/dynamo)
* [Dynamo guides](https://github.com/elixir-lang/dynamo#learn-more)
* [Dynamo docs](http://elixir-lang.org/docs/dynamo)