Description will follow.
Currently it is not running and work in progress. It will be updated.
-
Download GraalVM:
curl -L https://github.com/oracle/graal/releases/download/vm-1.0.0-rc1/graalvm-ce-1.0.0-rc1-linux-amd64.tar.gz --output graalvm.tar.gz -
Unzip:
tar -xvzf graalvm.tar.gz -
Add GraalVM /bin folder to PATH:
export PATH=/path/to/graalvm/bin:$PATH -
Get ruby + R:
gu -c install org.graalvm.ruby
gu -c install org.graalvm.R -
Install needed Tools:
apt-get update
sudo apt-get install git gcc g++ libcurl4-openssl-dev libssl-dev libgomp1 bzip2 make clang llvm libc++-dev -
Install R packages:
R --jvm
- install.packages("stringr")
- install.packages("lattice")
-
install ruby Twitter gem:
ruby -Sgem install twitter -v 5.17.0
Comment line 2 in:
path/to/graalvm/jre/languages/ruby/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/lib/http_parser.rb
#require 'ruby_http_parser'
e.g. nano /path/to/graalvm/jre/languages/ruby/lib/ruby/gems/2.3.0/gems/http_parser.rb-0.6.0/lib/http_parser.rb -
Clone project repo:
git clone https://github.com/boris-spas/languageEmbed.git -
Install node modules:
npm install -
compile Java
javac *.java -
Twitter Token:
Save the twitter Token with the following structure in the languageEmbed/Twitter directory as twitterToken.txt:
consumer_key=
consumer_secret=
access_token=
access_token_secret=
If you need a token follow these instructions
https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens:
Generating access tokens:
- Login to the apps.twitter.com interface using your Twitter credentials
- Create an app or open an existing app that you would like to create access tokens for
- Navigate to the 'Keys and Access Tokens' page
- Scroll down and click on the 'Create my access token' button
- Take note of your access token as you will use in to access certain API endpoints
- open browser at https://localhost:3000/sentiment