Writeup available at: https://ashishchaudhary.in/game-of-thrones-visualization
If there are any build errors, please remove the package-lock.json file and continue.
Tested on: Nodev8.9.1+
git clone <this-repo>npm install(please usenpmand notyarn)- install neo4j
Using docker:
docker run -d \
--publish=7474:7474 --publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
neo4j:3.0
Make sure to setup password before going further (go to http://localhost:7474).
- Edit
src/config/index.tsaccording to the ports, addresses, and passwords that you are going to use so that the application knows where to point its queries.
- execute
external/import-data/01-insert-characters.jsandexternal/import-data/02-insert-relationships.jsin order.
- execute
external/proxy/index.js. By default it runs at port 3000. This value is reflected in thesrc/config/index.tsfile too.
npm start -s
npm run build -s// this produces build indist/npm run static -s// to quickly view the build in the browser at port 8080 // configurable instaticcommand inpackage.json.