Project development of the course Geosoftware 2 by Lukas, Max, Constantin and Christin
-
Download or clone the GitHub Repository
git clone https://github.com/Leverkusen/Geosoftware2
-
Create your own API-Tokens by getting registered on the websites below
- For example FlickrAPI (https://www.flickr.com/services/apps/create/)
-
Create the file
token.js
with the following content in theconfig
folder:
GeosoftwareProject
└─┬ config
└── tokens.js
if(typeof exports == "undefined"){
var exports = window;
}
// tokens tokens tokens...
exports.token = {
twitter_consumer_key: 'your twitter consumer key',
twitter_consumer_secret: 'your consumer secret',
twitter_access_token: 'your twitter access token',
twitter_access_token_secret: 'your twitter access token secret',
mapbox_access_token: 'your mapbox token',
instagram_app_id: 'the instagram app id' [not needed right now],
instagram_app_secret: 'the instagram app id' [not needed right now],
flickr_app_key:'the flickr app key',
flickr_app_secret:'3the flickr app secret'
}
- install Docker on your local machine
- ensure that the data folder is shared
- open shell and navigate to folder
Geosoftware2
- run
docker-compose up
- install Node.js and MongoDB on your local machine
- open shell and create MongoDB
- on Windows:
"C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --dbpath="C:\path_to_GeosoftwareProject\data"
- possible troubleshoot: use the downloaded
data
folder instead of the cloned folder
- on Windows:
- open another shell and navigate to folder
GeosoftwareProject
- run
npm install
- run
npm start
in the test folder lays a Postman and a .jmx file. The instagram test will not run because instagram is not yet implemented
If there is currently no data and you want to train see our training data in the data folder. And also for Flickr you can change the period of time in the flickr Controller in the removeOldPhotos function. Set subtract(48, 'hours') for excample to subtract(80, 'hours')
the generated HTML pages of the JSDoc documentation are located in JSDoc
- get the location filter for Flickr Data running
- map on moveende/zoomend -> update the displayed social media data
- if there are to many points that would be displayed do a heatmap like on https://github.com/Leaflet/Leaflet.heat
- better error-handling
- keyword filter for twitter
- getting Instagram data
-
Lukas B.
-
Max
-
Constantin
-
Christin