Skip to content

Building a stock broker web application using Apache HBase, Fast API and React js

Notifications You must be signed in to change notification settings

rui-exe/FEUP-Oakmont

Repository files navigation

StockBroker-BDNR

Project in the scope of BDNR curricular unit @FEUP

How to run the project

  1. Clone the repository
  2. Make sure to have installed the header files and static libraries for python dev for your version of python. Then, install the required python packages with the following command:
pip install -r requirements.txt
  1. Create the .env file in the /backend and /hbase-client directories that are necessary to run the containers, for simplicity you can simply copy the .example.env files.
cp backend/.example.env backend/.env
cp hbase-client/.example.env hbase-client/.env
  1. Build the docker containers and run the project with the following command:
docker compose up --build
  1. After the HBase Master server is functional and accepting connections, run the following python scripts:
python3 database_creation.py
python3 database_population.py
  1. Optionally, you can run the following script in the background to perform real-time stock data updates:
python3 real_time.py

Just be sure to have your .env file configured with the correct IEX Cloud API key.

  1. Access the frontend at http://localhost:3000 and the backend docs at http://localhost:8081/docs

8 To access the HBase shell, run the following command:

docker exec -it hadoop /usr/local/hbase/bin/hbase shell