Analytics service using RESTful API based on JAX-RS. Manages Student Performance Prediction and User-based Deck Recommendations.
- git clone https://github.com/slidewiki/analytics-service
- cd analytics-service/
- (if needed) Change corresponding server name in SERVICE_URL_ACTIVITIES inside the Dockerfile
- (sudo) docker build -t test-analytics-service .
- (sudo) docker run -it --rm -p 80:8080 test-analytics-service
- The service will be available at http://localhost/analytics
- git clone https://github.com/slidewiki/analytics-service
- cd analytics-service/
- Install Java 1.8 ( sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer )
- Install Tomcat 8.0.27.0 ( sudo apt-get install tomcat8 tomcat8-docs tomcat8-admin )
- Deploy analytics service to Tomcat ( copy /build/web to /usr/local/tomcat/webapps/analytics )
- Create directory /home/prediction and copy temp_test.txt to it ( allow read permissions )
- Create environment variable SERVICE_URL_ACTIVITIES = https://activitiesservice.experimental.slidewiki.org
- Run the Tomcat server
- The service will be available at localhost:8080/analytics
GET /analytics/webresources/recommender
query parameters:
userid - id of the user
POST /analytics/webresources/predictionjob
body:
{
related_prediction_activity_id (string),
user_id (string),
deck_id (string),
jwt (string),
dummy (boolean)
}