You can replace your existing README.md file with the text below.
Third Place Winner at the Cybersecurity Hackathon - View Announcement
HSS Secure is a comprehensive healthcare staff management platform designed to simplify scheduling, monitor compliance, and streamline communication between medical professionals. Built with security and usability in mind, it helps healthcare organizations reduce administrative workload by up to 40% while ensuring HPCSA compliance.
- Live Application: https://healthcaresecuresystem.netlify.app/
- Demo Account:
demo_user/hss123demo - Backend API: Deployed on Render (see Environment Setup)
Click demo and then click login to access the features of the app.
| Feature Area | Description | Impact |
|---|---|---|
| π Real-time Staff Management | Live shift tracking, assignment, and mobile-friendly interface. | Enables on-the-go access and instant updates for all staff. |
| π‘οΈ Compliance & Security | Automated HPCSA-compliant tracking, role-based access, and audit trails. | Ensures data security and helps maintain an average 86% compliance status. |
| π Analytics Dashboard | Real-time metrics, overtime tracking, and compliance reporting. | Provides actionable insights for management to optimize staffing. |
| π Efficient Scheduling | Automated shift creation with conflict detection and resolution. | Reduces manual scheduling errors and administrative time. |
- Framework: Next.js 14 (App Router)
- Language: React 18 with TypeScript
- Styling: Tailwind CSS + CSS Modules
- State Management: React Context + Custom Hooks
- Forms: React Hook Form with Zod validation
- Charts: Recharts
- Notifications: React Hot Toast
- Runtime: Node.js 18+
- Framework: Express.js
- Authentication: JWT + bcrypt
- API Docs: Swagger/OpenAPI
- Validation: Joi
- Security: Helmet, CORS, rate limiting
- Database: MongoDB Atlas with Mongoose ODM
- Hosting: Vercel (Frontend), Railway/Render (Backend)
- Monitoring: LogRocket, Sentry
- CI/CD: GitHub Actions
hss-secure/
βββ frontend/ # Next.js Application (App Router)
β βββ app/ # Pages & API routes
β βββ components/ # Reusable UI components
β βββ lib/ # API client, auth, utilities
β βββ types/ # TypeScript definitions
β βββ styles/ # Global styles
βββ backend/ # Node.js/Express API Server
β βββ src/
β β βββ controllers/ # Route logic
β β βββ models/ # MongoDB schemas
β β βββ routes/ # API endpoints
β β βββ middleware/ # Custom middleware (auth, validation)
β β βββ utils/ # Helper functions
β βββ config/ # Environment configs
β βββ tests/ # Test suites
βββ shared/ # Shared code (types, constants)
βββ docker/ # Container configurations
πΈ Screenshots
π Dashboard Overview

Real-time analytics showing staff distribution, compliance status (86%), and upcoming shifts.
π
Interactive Scheduling Interface
Drag-and-drop scheduling calendar with conflict detection and staff availability indicators.
π‘οΈ Compliance Monitoring Dashboard
Detailed compliance tracking showing certification status, renewal deadlines, and audit trails.
π± Mobile Staff View
Mobile-optimized interface allowing staff to view schedules, clock in/out, and receive notifications.
π Administrative Control Panel
Role-based access control panel for managing users, permissions, and system settings.
π Analytics & Reporting
Interactive charts showing overtime trends, department performance, and staffing metrics.
- Node.js 18+ and npm/yarn/pnpm
- MongoDB Atlas account or local MongoDB instance
- Git
-
Clone and navigate into the project:
git clone https://github.com/ShawnTheCreator/HSS.git cd HSS -
Install dependencies for both frontend and backend:
# Install frontend dependencies cd hss-frontend npm install # Install backend dependencies cd ../hss-backend npm install
-
Environment Configuration:
Backend (
hss-backend/.env):PORT=5000 MONGODB_URI=your_mongodb_atlas_connection_string JWT_SECRET=your_secure_jwt_secret_key NODE_ENV=development FRONTEND_URL=http://localhost:8080 # Your Vite frontend URL
Frontend (
hss-frontend/.env):VITE_API_BASE_URL=http://localhost:5000/api # Add other public configuration variables here
β οΈ Important: The.envfile is for local development. Never commit it to Git. Use the provided.env.exampleas a template. -
Start the development servers:
Terminal 1 - Start the Backend API:
cd hss-backend npm run dev # Server runs on http://localhost:5000
Terminal 2 - Start the Frontend Application:
cd hss-frontend npm run dev # App runs on http://localhost:5173
-
Access the application:
- Frontend App: http://localhost:8080
- Backend API: http://localhost:5000
- Health Check: http://localhost:5000/api/health
{
email_id: String, // Unique identifier for login
password: String, // Hashed
role: String, // 'admin', 'manager', 'staff'
profile: {
firstName: String,
lastName: String,
contactNumber: String
},
isActive: Boolean
}{
staffId: ObjectId,
startTime: Date,
endTime: Date,
department: String,
status: String, // 'scheduled', 'in-progress', 'completed'
}| Method | Endpoint | Description | Auth Required |
|---|---|---|---|
POST |
/api/auth/login |
Authenticate user and return tokens | No |
POST |
/api/auth/refresh-token |
Refresh access token | Yes |
GET |
/api/dashboard/summary |
Get dashboard KPIs | Yes |
GET |
/api/shifts |
List all shifts | Yes |
POST |
/api/shifts |
Create a new shift | Yes (Admin/Manager) |
# Run backend tests
cd hss-backend
npm test
# Run frontend tests
cd hss-frontend
npm testThis project is proprietary software. All rights reserved.
- Fork the repository.
- Create a feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
HSS Secure β Third Place Winner π₯ | Cybersecurity Hackathon | Simplifying Healthcare Staff Management