List of movies shot in SFO displayed on a dynamic map
To compile the SPA:
NODE_ENV=production node_modules/.bin/webpack -p
To run a local http server(on http://localhost:8080) serving the SPA:
node_modules/.bin/http-server src/static
To run the isomorphic React App - DEVELOPMENT(http://localhost:3000/map/), run the following commands in two separate terminal windows:
npm run start
npm run server
To run the isomorphic React App - PRODUCTION:
NODE_ENV=production node_modules/.bin/webpack -p
NODE_ENV=production node_modules/.bin/babel-node --presets 'react,es2015' src/server.js
Get the latest dump here: [SF-data] (https://data.sfgov.org/Culture-and-Recreation/Film-Locations-in-San-Francisco/yitu-d5am)
Run the script python script.py
Import the documents into MongoDB:
mongoimport --db sf_movies --collection movies_locations --file refactored_data.json --jsonArray
And create the Geo index:
db.movies_locations.createIndex( { "loc": "2dsphere" } )