Arroch
Quickstart
- Requirements:
- Oracle JDK (OpenJDK is not supported)
- sbt (Scala)
- Steps:
- Clone project from Git
- In main project directory
sbt run
- Go to http://localhost:9000
Database settings
Database configuration is in conf/application.conf
, you may also need to change SQL dialect in conf/META-INF/persistence.xml
Test data generator
To fill the database with random data:
- (For persistent database only) Drop tables from database (or switch to H2 in mem db provider)
- In
conf/application.conf
setdatabasePreloader.addTestData
totrue
- Run the application (generation occurs on start, so it may take a few minutes for the first page to load)
IntelliJ IDEA quickstart
- Requirements:
- Oracle JDK (OpenJDK is not supported)
- IntelliJ IDEA Ultimate with Scala plugin
- Steps:
- Import project from Git
- Go to
build.sbt
and import SBT project - Wait until all dependencies are resolved and project indexed
- In any class file in
app
chooseRun Play 2 App
from the context menu
Data Scrapers
Google People API
In order to make it working:
- Visit the Google Developer Console
- Create new project
- Enter API library and enable "Google People API"
- Enter credentials tab
- Click Create credentials ➜ OAuth Client ID ➜ Web Application
- In the form that showed up, enter the redirect URL:
http://localhost:9000/google/authenticated/
and click Create - Enter the newly created client ID and click "Download JSON"; put the file in
conf/google_client_secrets.json
- Visit
http://localhost:9000/google
and it should, after consent, import the People into the database
- Login to
https://mbasic.facebook.com/home.php
- Extract Facebook cookies from browser and put them in file
conf/facebook_cookies
- Do not logout
Messenger
- Login to
https://www.messenger.com
- Extract Messenger cookies from browser and put them in file
conf/messenger_cookies
- Do not logout