- Move to the hays-hackathon file
cd man-city-hackathon-front-end/hays-hackathon
- Run the code with
npm run start
with you are using NPM oryarn start
if you are using Yarn
- Move to the api file
cd api
- Run the code with
npm run start:dev
with you are using NPM oryarn start:dev
if you are using Yarn
The tracking energy API provides energy calculation from tracking data as well as energy predictions to inform coach decisions through the app.
To run this API locally you need to have Python 3.11 on your computer.
- If you have make installed on your machine (default on Linux, see here for Windows and here for Mac), then open a terminal on the tracking_energy_api folder and run make run. This will create a virtual environment in which requirements will be installed and the app will run on port 5000 of your localhost.
- Otherwise, open a terminal on the tracking_energy_api and run pip install -r requirements.txt, then run the tracking_energy_api\api\app.py python file either from an IDE or on the terminal by typing python api\app.py on the already open terminal. This should make the api run on the port 5000 of your localhost