Skip to content

List of movies shot in SFR displayed on a dynamic map

Notifications You must be signed in to change notification settings

riccardolorenzon/SF-Movies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SF-Movies

List of movies shot in SFO displayed on a dynamic map

Instructions - Running the application

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

Create initial SF Movies DB

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" } )

About

List of movies shot in SFR displayed on a dynamic map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published