Open two terminals, one for the frontend and one for the backend.
In the backend terminal, run the following commands:
cd server
pip install -r requirements.txt
In the frontend terminal, run the following commands:
cd web
yarn install
Currently, the api is configured to run the following command:
"rtl_power -f 24M:100M:1M -i 1s -g 50 -1 data/data" + str(dataIndex) + ".csv"
If you want to change it at all, you can do so in the server/rtl_power_loop.py
file.
In the backend terminal, run the following commands:
py api.py
In the frontend terminal, run the following commands:
yarn dev
Open http://localhost:3000 with your browser to see the result.