-
Notifications
You must be signed in to change notification settings - Fork 3
Milestone 1
The front end of the project is developed using Angular 7 : (Branch) - develop-client-rhino
- The user can log in using google Oauth
- The user can search for doctors using the name. - The result will be displayed in console and search result page is targetted for milestone 2
- The user can view doctors nearby on the home screen. Name of the doctor, qualification, and bio is being retrieved from service Purple.
- On click of "View more", user can see a list of keywords searched previously. This data is being retrieved from service Blue. Automatic rendering of this section is targetted for milestone2.
-
Step 1 : Software downloads
- Python 2.7 from https://www.python.org/download/releases/2.7/
- Java SE JDK 1.8 from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Npm & node from https://www.npmjs.com/get-npm
- Maven from http://ftp.wayne.edu/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.zip
-
Step 2 : Set environment variables and path
- Add environment variable MAVEN_HOME and set path to ${MAVEN_HOME}/bin
- Add environment variable JAVA_HOME and set path to ${JAVA_HOME}/bin
- Add environment variable NPM_HOME and set path to ${NPM_HOME}/bin
-
Step 3 : Set up microservice red
- clone repo airavata-courses/MayDay
- change directory to ./MayDay
cd ./MayDay
- checkout branch microservice-red-release/0.1.0
git checkout microservice-red-release/0.1.0
- change directory to ./com.microservice.red
cd ./com.microservice.red
- start red microservice
mvn jetty:run
- clone repo airavata-courses/MayDay
-
Step 4 : Set up microservice blue
- clone repo airavata-courses/MayDay
- change directory to ./MayDay
cd ./MayDay
- checkout branch microservice-blue-release/0.1.0
git checkout microservice-blue-release/0.1.0
- install pip
python -m pip install -U pip
- install python package virtualenv
python -m pip install virtualenv
- start python virtual environment
virtualenv venv
- activate virtual environment
./venv/bin/activate
- install python package falcon
pip install falcon
- install python package msgpack
pip install msgpack
- install python package waitress
pip install waitress
- install python package falcon-cors
pip install falcon-cors
- start blue microservice
python ./server/__init__.py
To test the service you can use the Test blue microservice url given below.
- clone repo airavata-courses/MayDay
-
Step 5 : Setup microservice purple
- clone repo airavata-courses/MayDay
- change directory to ./MayDay
cd ./MayDay
- checkout branch microservice-purple-release/0.1.0
git checkout microservice-purple-release/0.1.0
- install typescript globally
npm install -g typescript
- install dependencies
npm install
- run transpiler
tsc
- start purple microservice
npm run start:only
- clone repo airavata-courses/MayDay
-
Step 6 : Setup front end rhino
- clone repo airavata-courses/MayDay
- change directory to ./MayDay
cd ./MayDay
- checkout branch client-rhino-release/0.1.0
git checkout client-rhino-release/0.1.0
- install angular cli globally
npm install -g @angular/cli
- install dependencies
npm install
- start front end rhino
ng serve
- clone repo airavata-courses/MayDay
At any point of time if you get errors like command not found even after installing npm packages, just export path of that package to $PATH or %PATH%
- Test red microservice
localhost:8080/rest/customers/test
should see a OK message on the browser
- Test blue microservice
localhost:8000/test
should see a OK message on the browser
- Test purple microservice
localhost:3000/test
should see a OK message on the browser