the api is still a work in progress. Weather api created using fastapi framework. the api gets the data from a mysql database.
eventualy the data that is going to be used is going to come from an esp32 with a couple of sensors.
- clone the repository
- start up an MySQL Server preferably version 8.0.32
- create a database called
weatherdatabase
- import the database file that is located in the
/database
directory - configure your database credentials into the
/.env
file - configure your api token you wane use in the
/.env
file - install all the python packages that are used by the api by running
pip install -r requirements.txt
- to run the api run
uvicorn main:app --reload
- after starting up the api look up localhost:8000/docs in your browser
- after that you can use the endpoints.