Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.7 KB

README.md

File metadata and controls

48 lines (39 loc) · 1.7 KB

Service-Oriented-Architecture

INSTRUCTIONS

  1. Clone the repo
  2. Install necessary dependencies by performing the commands detailed in the INSTALL section below.
  3. In it you will find ngrok.exe, an application to access our website. Run two instances of ngrok and note the ports on which you run them. For example, you can run these with:
$ ngrok http 8000 

and

$ ngrok http 5000

Further instructions to start ngrok can be found here: https://dashboard.ngrok.com/get-started.

  1. Deploy the web application and back end components by performing the commands detailed in the DEPLOYMENT section below.

  2. Run both python scripts (historic_prices.py and EfficientFrontier.py). Make sure that the ports specified at the bottom of each script correspond to the port on which ngrok is running on.

  3. Run the front end components (found here: https://github.com/Fadyazmy/cs4471).

  4. Sign in. You can use this account, for example: Email: [email protected] Password: 123456

  5. Play around with our services. To make sure you have full access to ALL our services, navigate to the User Profile page and set your name to Admin. This will give you full access to all services. Service 1: Stock Lookup (Displays historic prices for a given stock) Service 2: Efficient Frontier (Gives recommendations for a given portfolio) Service 3: Service Yellow Pages (Allows admins to control which services are available to users)

INSTALL

Python Dependencies:

$ pip install flask
$ pip install matplotlib
$ pip install numpy
$ pip install pandas
$ pip install yfinance
$ pip install firebase

DEPLOYMENT

Host Back End Endpoint:

$ python historic_prices.py
$ python efficient_frontier.py