Models : Employee , Attendance ,Checks
- Employee Can Make one Attendance in the Day but Can Make more Checks.
- Employee When Register take from him mac address to Prevent Other user make Attendace for him
- Employee can't make attend , Check before Login (PYJWT Auth)
- Employee Has Relation with Attendance
- Attendance Has Relation with Check
Configurations
- python -m venv
- venv\Scripts\activate
- PIP INSTALL -r requirements.txt
- Create db IN Postgress Name Lavloon
- change Configurations for setting.py host , User ,Password
- python manage.py makemigrations
- python manage.py migrate
- python manage.py runserver
APIS
- api/register: Employee Register
- api/Login : Employee LOGIN
- api/logout : Employee Logout
- api/attend : Show The all attendance For User is Logged
- api/submit : Submit Attendance IF Valid
- api/check : Show All Checks for USER is Logged
- api/checkio : Check IN or Check OUT As a Conditions