Skip to content

Milestone 1

shashank edited this page Mar 3, 2019 · 2 revisions

Website User Interface and Working Functionality for 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.

Installation

  • Step 1 : Software downloads

  • 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

      git clone https://github.com/airavata-courses/MayDay.git

    • 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

  • Step 4 : Set up microservice blue

    • clone repo airavata-courses/MayDay

      git clone https://github.com/airavata-courses/MayDay.git

    • 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.

  • Step 5 : Setup microservice purple

    • clone repo airavata-courses/MayDay

      git clone https://github.com/airavata-courses/MayDay.git

    • 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

  • Step 6 : Setup front end rhino

    • clone repo airavata-courses/MayDay

      git clone https://github.com/airavata-courses/MayDay.git

    • 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

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%

Testing front end and microservices

  • 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

Contacts

Clone this wiki locally