Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rui-exe/feup-oakmont
Building a stock broker web application using Apache HBase, Fast API and React js
https://github.com/rui-exe/feup-oakmont
fastapi finance hadoop happybase hbase java non-relational-database python python3 react reactjs stock-broker stock-market wide-column-database zookeeper
Last synced: about 1 month ago
JSON representation
Building a stock broker web application using Apache HBase, Fast API and React js
- Host: GitHub
- URL: https://github.com/rui-exe/feup-oakmont
- Owner: rui-exe
- Created: 2024-03-29T17:00:49.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-05-13T22:51:41.000Z (7 months ago)
- Last Synced: 2024-05-15T06:20:06.762Z (7 months ago)
- Topics: fastapi, finance, hadoop, happybase, hbase, java, non-relational-database, python, python3, react, reactjs, stock-broker, stock-market, wide-column-database, zookeeper
- Language: Python
- Homepage:
- Size: 9.44 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:```bash
pip install -r requirements.txt
```3. 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.
```bash
cp backend/.example.env backend/.env
cp hbase-client/.example.env hbase-client/.env
```4. Build the docker containers and run the project with the following command:
```bash
docker compose up --build
```5. After the HBase Master server is functional and accepting connections, run the following python scripts:
```bash
python3 database_creation.py
python3 database_population.py
```
6. Optionally, you can run the following script in the background to perform real-time stock data updates:```bash
python3 real_time.py
```
Just be sure to have your .env file configured with the correct IEX Cloud API key.7. 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:
```bash
docker exec -it hadoop /usr/local/hbase/bin/hbase shell
```