Modern HR and workforce experience platform for universities, blending admin oversight, HR processing, and employee self-service into one responsive dashboard.
University HR System streamlines campus workforce management with persona-specific workspaces, automated workflows, and rich analytics. The app ships with a mock data layer for local development and an Express/MSSQL backend scaffold for production use.
- Unified authentication: Single entry point for Admin, HR, and Employee personas with tailored routing and state management.
- Persona dashboards: Widget-based layouts surface attendance, leave balances, payroll history, and performance KPIs at a glance.
- Leave & attendance workflows: Employees initiate requests, HR reviews approvals, and admins monitor utilization trends.
- Payroll oversight: Snapshot cards and tables summarize compensation updates, deductions, and payout schedules.
- HR insights: Visualizations (charts, progress rings, mini-reports) reveal staffing mix, department alerts, and compliance reminders.
- Reusable UI kit:
src/components/uiexposes composable primitives (cards, tabs, tables, charts) built with Tailwind CSS v4 and shadcn-inspired tokens.
- Frontend: React + TypeScript (Vite) SPA hosted in
src/, uses modern hooks, context, and utility helpers insrc/utils/. - Mock API:
src/utils/api.tsxcentralizes all asynchronous calls and data contracts, simulating MSSQL-backed endpoints with latency. - Admin Workflows:
src/components/admin/AdminPart1.tsxorchestrates dashboard-level API calls, request handlers, and persona routing. - Backend:
backend/hosts an Express server pre-wired for themssqldriver; swap the mock API with real HTTP calls when ready. - Styles: Global Tailwind tokens live in
styles/globals.css, while component-level styling is colocated with each widget.
- Frontend: React 18, TypeScript, Vite, Tailwind CSS v4
- State & Utilities: React Context, custom hooks, utility helpers in
src/utils - Backend: Node.js, Express,
mssql - Database: TSQL, Microsoft SQL Server
.
├── src/
│ ├── components/
│ │ ├── admin/
│ │ │ ├── AdminPart1.tsx # Admin dashboard + API wiring
│ │ │ └── AdminPart2.tsx
│ │ ├── employee/
│ │ ├── ui/ # Shared component library
│ │ └── ...
│ ├── utils/
│ │ └── api.tsx # Mock API + data contracts
│ ├── App.tsx
│ └── main.tsx
├── backend/
│ ├── server.js
│ ├── db.js
│ └── package.json
├── styles/
│ └── globals.css
├── package.json # Frontend scripts/deps
└── README.md
- Node.js 18+
- npm 9+
- (Optional) Access to Microsoft SQL Server if running the backend against a live database
git clone https://github.com/mariamxxxx/University-HR-System.git
cd University-HR-Systemnpm install
npm run devVisit http://localhost:5173/ to explore the full dashboard experience powered by the mock API.
cd backend
npm install
node server.js| Command | Location | Description |
|---|---|---|
npm run dev |
root | Start the Vite dev server |
npm run build |
root | Create a production build |
npm start |
backend | Launch the Express/MSSQL API |
- SQL connectivity: Ensure SQL Browser is running or append the explicit port (e.g.,
server: "localhost,1433") inbackend/db.js. - Windows authentication: Install
msnodesqlv8and update the connection configuration if you prefer trusted connections. - Styling issues: Confirm
src/index.cssandstyles/globals.cssare imported insrc/main.tsx; rerunnpm run devafter Tailwind config changes. - Port conflicts: Adjust the Vite dev server via
vite.config.tsor the Express server via thePORTenv variable.
- Connect the React app to live Express endpoints and retire the mock API.
- Document the final SQL schema and stored procedures in
/backend/database.sql. - Add automated tests for authentication, leave approvals, and payroll workflows.
- Introduce role-based access controls and audit logging for sensitive actions.
Questions or ideas? Open an issue or start a discussion in the GitHub repository.