You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A full-stack web application for managing employee onboarding and offboarding workflows across global organizations. Built for HR teams, IT administrators, and department managers handling multi-region compliance.
Project Overview
Managing employee lifecycles in global companies involves complex, region-specific processes. This system centralizes and automates the end-to-end on/off-boarding workflow — from new hire registration and application provisioning to departure compliance and asset recovery.
Who It's For
Role
Responsibilities
HR Managers
Register new employees, monitor onboarding progress, generate reports
IT Administrators
Manage system accounts, configure access permissions, enforce security policies
Department Managers
Approve team member onboarding/offboarding, assign tasks, track progress
Key Capabilities
Multi-Region Compliance — region-specific workflows for US, EU, KR (South Korea), and CN (China)
Application Provisioning — request, approve, and track account creation for 3rd-party services
# 1. Clone
git clone https://github.com/scale600/HR-Workflow-NextJS-PostgreSQL.git
cd HR-Workflow-NextJS-PostgreSQL
# 2. Install dependencies
npm install
# 3. Configure environment
cp .env.example .env
# Edit .env with your DATABASE_URL and NEXTAUTH_SECRET# 4. Run database migrations
npx prisma migrate dev
# 5. (Optional) Seed initial data
npx prisma db seed
# 6. Start development server
npm run dev
# → http://localhost:3000
Create Admin User
npm run create-admin
Build for Production
npm run build
npm start
API Overview
Method
Endpoint
Description
GET/POST
/api/employees
List / Create employees
GET/PUT/DELETE
/api/employees/[id]
Employee detail / update / delete
GET/POST
/api/applications
List / Create applications
GET/PUT
/api/applications/[id]
Application detail / update
GET/POST
/api/employee-applications
List / Create employee-application mappings
GET/PUT
/api/employee-applications/[id]
Mapping detail / approve/reject
GET/POST
/api/offboarding
List / Start offboarding
GET/PUT
/api/offboarding/[id]
Offboarding detail / update status
GET/PUT
/api/offboarding/[id]/applications/[appId]
Offboarding application status
GET
/api/data/export
Export data (CSV)
POST
/api/data/import
Import data (CSV)
POST
/api/auth/[...nextauth]
Authentication (NextAuth.js)
Contributing
Fork the repository
Create a feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
License
This project is licensed under the MIT License.
About
Employee On/Off-boarding Management System — web-based HR workflow platform for global corporations. Multi-region (US/EU/KR/CN) onboarding application management, automated offboarding compliance, asset return tracking. Built with Next.js 14, TypeScript, PostgreSQL, Prisma ORM, and Tailwind CSS.