Skip to content

shodown96/hr_platform

Repository files navigation

HR Plaform (WIP)

Services

  • Auth Service
  • Employee Management Service
  • Payroll Service
  • Time and Attendance Service
  • Audit Service

Features

  • FastAPI with async support
  • Structured project layout
  • Pydantic models for validation
  • SQLAlchemy for managing DB models
  • Albemic for managing migrations
  • Dependency injection
  • Environment-based configuration
  • Automatic interactive API docs (Swagger & ReDoc)
  • Authentication

Getting Started

1. Create Virtual Environment

python -m venv venv
source venv/bin/activate

2. Install dependencies

pip install -r requirements.txt

3. Run migrations

cd [service_name] # start with auth
alembic revision --autogenerate -m 'MESSAGE' # for a new project
alembic upgrade head
alembic current # to check things went smoothly 

Seed Data

cd auth-service
python -m app.scripts.seed_permissions 
python -m app.scripts.seed_admin # --reset (to reset the admin)

4. Run the server

fastapi dev

4. Test Microservices

cd [service_name] # start with auth
pytest -s

Docs

About

Microservice-based HR platform built with FastAPI, starting with an Auth service (JWT, RBAC, permissions) and expanding into core HR modules like Employees, Payroll, Time Tracking, and Documents & Compliance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages