Staff Movements Monitoring

Project information

  • Category: Web Development
  • Project date: 2022

Description

Allows the monitoring of staff movements: Annual leave, special leave, exit vouchers, sick leave, recoveries.

Go to application code samples

Technologies used

  • Python , xhtml2pdf, openpyxl
  • Django , rest_framework to create RESTful-APIs (Web APIs) , widget_tweaks
  • HTML , CSS , Bootstrap
  • JavaScript , Fetch API
  • MariaDB Database
  • NGINX (for deploiement)

Application screenshots

Menus

Multiple screenshots are put in one to show all the menus.

Add a new exit voucher

Modify an existing exit voucher

List of annual leave rigths

We can print it (as PDF) or export it to Excel.

Add a new annual leave

We use javascript Fetch API (in client side) to get the annual leave rights of the employee using Django RESTful API (in server side).

Add a new sick leave

Set revovery rights

Take a recovery

The same thing as for "annual leave rights", we use javascript Fetch API (in client side) to get the recovery rights of the employee using Django RESTful API (in server side).

Filters for the list of mouvements

Mouvements list

Application code samples

Modules used (not part of Python):

  • xhtml2pdf: Convert HTML template to PDF
  • openpyxl: Export queryset to Excel (xlsx)

Database: MariaDB

Code sample: Model (django) for a mouvement

Code sample: Form (django) for a mouvement of exit voucher

Code samples: View (django) for inserting a mouvement of annual leave

Code sample: Template (django, widget_tweaks module, HTML, CSS, Bootstrap, JavaScript) for inserting a mouvement of annual leave

Fetch API (javascript) to use RESTful APIs (Django)

As said before, we use javascript Fetch API (in client side) to get the annual leave rights of the employee using Django RESTful API (in server side).

Code sample: Serializer and View to create a RESTful API to give number of days remaining for the annual leave.

Code sample: NGINX configuration for deploiement