Skip to content

eevanlai-stack/codespaces-blank

Repository files navigation

Flask Payroll/HR Backend

Endpoints include GPS mock, EPF, PERKESO, PCB, clock-in, attendance, payroll, advance, profile, chat, translate.

Prerequisites

  • Python 3.11+

Setup

python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

Run (development)

python app.py

Server: http://localhost:8000/healthz

Run (production)

gunicorn -b 0.0.0.0:8000 wsgi:app --workers 2 --threads 4

Docker

docker build -t payroll-backend .
docker run -p 8000:8000 payroll-backend

Example requests

curl http://localhost:8000/gps
curl -X POST http://localhost:8000/epf -H 'Content-Type: application/json' -d '{"salary":5000}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages