/attendance_backend

考勤系統的後端

Primary LanguagePython

Attendance back end

I separated attendance-system and use fastAPI to write back end.

Prerequisites

  • Python 3.8
  • pipenv(Python Module)

Set up

Environment Setup

  1. initialize python environment
make init
  1. Start the service
make start
pipenv run uvicorn attendance.main:app --reload
  1. Stop service
Ctrl+c
  1. Delete Database
make clean

Development

testing

Using pytest in fastapi.

  • If you are first time.
pipenv shell
pip install requests
make test

First time to use

  • We already set an admin account when we do make init it, there is the info.
name: admin
account: admin
password: admin