Api for your scoreboard to use in games and such.
Still a work in progress. If you aren't familiar with python environments, follow this instruction (on Windows. Mac and Linux users, you're on your own):
- Clone repo to local directory.
git clone <git-url>
cd scoreboard-rest-api
- Set up virtual environment (on Windows. Mac and Linux users, you're on your own):
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
- Run the program with uvicorn, not directly with python. Use
ctrl + c
to exit program.- Run Hello World just to be sure FastAPI works.
uvicorn HelloWorld:hello_api --reload
- Full program is the following command.
uvicorn scoreboard-api.main:rest_api --reload
- To see the API docs and test the API, go to:
/docs
- Run Hello World just to be sure FastAPI works.