Skip to content

installation: CLI

Dingensen edited this page Jan 29, 2020 · 4 revisions

Step by step instructions to get the application started

  • Open the command line

navigate to the folder where the repository/project is located and install the dependencies.

cd {your project path}
npm install
  • Open a second command line

set the path of your mongod.exe and set your project folder as the database path

"your mongod.exe path" --dbpath="your project path"
  • Open a third command line

run mongo

mongo
  • open the plumber.R with R-studio, install all needed libraries, and start it with plumb(file={filepath of plumber.R}')$run(port=8000)

  • Go back to the first command line

create a package.json file, and run the application

  • create {project path}/config.yml containing the configuration files for the server
#tweet-scraper parameters

#TEMPLATE FILE
#  copy this file, name it "config.yaml" and insert the given keys into the given parameters.
#  double check that "config.yaml" is in .gitignore and .dockerignore
#  DO NOT PUBLISH ANY TOKENS ON GITHUB
#  if you do, please notify us before resetting the tokens.

# twitter tokens
tokens:
  twitter:
    consumer_key: "KEY HERE"
    consumer_secret: "KEY HERE"
    access_token_key: "KEY HERE"
    access_token_secret: "KEY HERE"

#the standard parameters for the stream, the server is caching it's tweets from
tweetParams:
  #bounding box of enclosed area.
  # WGS84: "WEST,SOUTH,EAST,NORTH"

  locations: "5.00,47.15,15.20,55.22"
  #track params can only be up to 60 bytes
  track: "klima, regen, sturm, unwetter, hilfe"

# weather scraper parameters
weatherParams:
  weatherUpdateInterval: 300000

npm start
  • For the final step, open your browser

access the application through the following URL

localhost:3000/geomergency

Clone this wiki locally