I separated attendance-system and use fastAPI to write back end.
- Python 3.8
- pipenv(Python Module)
- initialize python environment
make init
- Start the service
make start
pipenv run uvicorn attendance.main:app --reload
- Back end docs will run at http://127.0.0.1:8000/docs#/
- Stop service
Ctrl+c
- Delete Database
make clean
Using pytest
in fastapi.
- If you are first time.
pipenv shell
pip install requests
make test
- We already set an admin account when we do
make init
it, there is the info.
name: admin
account: admin
password: admin