Project in the scope of BDNR curricular unit @FEUP
- Clone the repository
- 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
- 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
- Build the docker containers and run the project with the following command:
docker compose up --build
- After the HBase Master server is functional and accepting connections, run the following python scripts:
python3 database_creation.py
python3 database_population.py
- 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.
- 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