This document provides the instructions to run the application on your machine.
git clone -b Project-1 https://github.com/airavata-courses/Team-Rocket.git
cd Team-Rocket/
This micro-service provides services for registration and login related services.
cd AuthServices
1) python3 or higher
2) pip3 or higher
1) Linux or mac:
pip3.7 install -r requirements.txt
2) Windows:
pip3 install -r requirements.txt
Linux or mac:
python3.7 -m Controllers.user_controller
Windows:
python3 -m Controllers.user_controller
The Auth service will run in port 5000
This micro-service provides services to interact with Spotify API.
cd APIBroker/
1) node
2) npm
Refer: https://nodejs.org/en/download/
npm install
node server.js
The API broker will run in port 3002
This micro-service provides services for user's personal details, history and recent moods.
cd ProfileServices/
1) node
2) npm
Refer: https://nodejs.org/en/download/
npm install
node server.js
The Profile Service will run in port 3001
This micro-service provides services to recommend songs to user.
cd RecoEngineWorkspace/src/RecommendationEngine/
1) Install Go and set GOPATH
Refer: https://golang.org/doc/install
2) Set RecoEngineWorkspace to GOPATH
Linux or Mac:
export GOPATH=$GOPATH:~/<path to which you have cloned>/Team-Rocket/RecoEngineWorkspace
Windows:
Create and set the GOPATH in environment variables. The path should be like
/<path to cloned repository>/Team-Rocket/RecoEngineWorkspace
Refer: https://github.com/golang/go/wiki/SettingGOPATH
NOTE: Please run the below commands ONLY from the directory containing main.go (.../src/RecommendationEngine)
If you receive a "can't find packages named RecommendationEngine/controllers" error, it is most likely due to
the following reasons:
1) GOPATH has not been set properly.
Please run echo $GOPATH to verify that it looks like the following:
/<path to which you have cloned>/Team-Rocket/RecoEngineWorkspace
NOTE: GOPATH shouldn't contain src directory
2) GOROOT has not been set properly. Please refer to https://golang.org/doc/install
Run the following commands to install required libraries and build executable:
go get github.com/gorilla/mux
go build
Linux/Mac:
./RecommendationEngine
Windows:
./RecommendationEngine.exe
The Recommendation Engine will run in port 8001
Provides User Interface for the application.
cd UI/
1) node
2) npm
Refer: https://nodejs.org/en/download/
npm install
npm run client
The User Interface will run in port 3000