-
Notifications
You must be signed in to change notification settings - Fork 0
Setup and Installation
We strongly suggest using VS-code on both Mac and windows
open a terminal and enter:
mkdir gateway-falcons
cd gateway-falcons
git clone https://github.com/airavata-courses/Gateway-Falcons.git front-end
git clone https://github.com/airavata-courses/Gateway-Falcons.git back-end
cd front-end
git checkout react-ui
cd app
npm i
cd ../../back-end
git checkout server-dev
npm run install
Load the back-end folder in VS code and Create a new Terminal
Obtain necessary credential config zip file (received in the email) and extract them in the back-end/server folder
cd server
npm start
Create a new Terminal
Obtain necessary credential config zip file (received in the email) and extract them in the back-end/server-data-ms folder
cd server-data-ms
npm start
Create a new Terminal
cd ../front-end/app
npm start
Prerequisites:
Maven: https://maven.apache.org/install.html
Java: https://www.java.com/en/download/help/download_options.xml
git clone https://github.com/airavata-courses/Gateway-Falcons.git media-service
cd media-service/
git checkout media-service
git pull
cd java-spring-microservice
Open java-spring-microservice>src>main>java>hello>GreetingController.java and replace the lines 22, 23 & 24 with credentials received in the email
mvn package
java -jar target/gs-rest-service-0.1.0.jar
Required:
- python3 Download
- virtualenv
pip install virtualenv
Python microservices
- diet microservice
- fitness microservice
git clone https://github.com/airavata-courses/Gateway-Falcons.git diet-service
cd diet-service/
git checkout diet-service
cd diet
For Mac/Linux
python3 -m virtualenv diet_env
source diet_env/bin/activate
For Windows
pip install windows-curses
To create virtual environment,
virtualenv diet_env
Activate your virtualenv: on Windows, virtualenv creates a batch file
\diet_env\Scripts\activate
(back to both)
pip install -r requirements.txt
To store the password in the system keyring, run
myfitnesspal store-password my_username
[Please check the credentials on the email for my_username and password]
use the following command to run flask application
flask run --host=127.0.0.1 --port=5000
Open a new terminal and run the following command:
cd diet
For Mac/Linux
source diet_env/bin/activate
python3 dietCron.py
For Windows
\diet_env\Scripts\activate
python3 dietCronW.py
git clone https://github.com/airavata-courses/Gateway-Falcons.git fitness-service
cd fitness-service/
git checkout fitness-service
cd fitness
For Mac/Linux
python3 -m virtualenv fitness_env
source fitness_env/bin/activate
For Windows
To create virtual environment,
virtualenv fitness_env
Activate your virtualenv: on Windows, virtualenv creates a batch file
\fitness_env\Scripts\activate
(back to both)
pip install -r requirements.txt
use the following command to run flask application
flask run --host=127.0.0.1 --port=5001
Open a new terminal and run the following command:
cd fitness
For Mac/Linux
source fitness_env/bin/activate
python3 fitnessCron.py
For Windows
\fitness_env\Scripts\activate
python3 fitnessCronW.py
Note: Please make sure that port used for running the microservice is same as the port mentioned in cron.py file.