Skip to content

ShawnTheCreator/HSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

310 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

You can replace your existing README.md file with the text below.


HSS Secure - Healthcare Staff Management System πŸ₯

React Next.js Node.js MongoDB Hackathon Winner

πŸ† Hackathon Achievement

Third Place Winner at the Cybersecurity Hackathon - View Announcement

πŸ“‹ Overview

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 Demo & Quick Access

Click demo and then click login to access the features of the app.

✨ Key Features

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.

πŸ—οΈ Technology Stack

Frontend

  • 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

Backend

  • Runtime: Node.js 18+
  • Framework: Express.js
  • Authentication: JWT + bcrypt
  • API Docs: Swagger/OpenAPI
  • Validation: Joi
  • Security: Helmet, CORS, rate limiting

Database & Infrastructure

  • Database: MongoDB Atlas with Mongoose ODM
  • Hosting: Vercel (Frontend), Railway/Render (Backend)
  • Monitoring: LogRocket, Sentry
  • CI/CD: GitHub Actions

πŸ“ Project Structure

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 Dashboard

Real-time analytics showing staff distribution, compliance status (86%), and upcoming shifts. πŸ“… Interactive Scheduling Interface HSS-Secure-Healthcare-Support-01-03-2026_04_15_PM Drag-and-drop scheduling calendar with conflict detection and staff availability indicators.

πŸ›‘οΈ Compliance Monitoring Dashboard HSS-Secure-Healthcare-Support-01-03-2026_04_17_PM Detailed compliance tracking showing certification status, renewal deadlines, and audit trails.

πŸ“± Mobile Staff View Mobile Mobile-optimized interface allowing staff to view schedules, clock in/out, and receive notifications.

πŸ” Administrative Control Panel AdminDashboard Role-based access control panel for managing users, permissions, and system settings.

πŸ“Š Analytics & Reporting Reports Interactive charts showing overtime trends, department performance, and staffing metrics.

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ and npm/yarn/pnpm
  • MongoDB Atlas account or local MongoDB instance
  • Git

Installation & Local Setup

  1. Clone and navigate into the project:

    git clone https://github.com/ShawnTheCreator/HSS.git
    cd HSS
  2. Install dependencies for both frontend and backend:

    # Install frontend dependencies
    cd hss-frontend
    npm install
    
    # Install backend dependencies
    cd ../hss-backend
    npm install
  3. 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 .env file is for local development. Never commit it to Git. Use the provided .env.example as a template.

  4. 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
  5. Access the application:

πŸ—„οΈ Core Database Schemas (Examples)

User Schema

{
  email_id: String,        // Unique identifier for login
  password: String,        // Hashed
  role: String,           // 'admin', 'manager', 'staff'
  profile: {
    firstName: String,
    lastName: String,
    contactNumber: String
  },
  isActive: Boolean
}

Shift Schema

{
  staffId: ObjectId,
  startTime: Date,
  endTime: Date,
  department: String,
  status: String, // 'scheduled', 'in-progress', 'completed'
}

πŸ” API Endpoints Quick Reference

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)

πŸ§ͺ Running Tests

# Run backend tests
cd hss-backend
npm test

# Run frontend tests
cd hss-frontend
npm test

πŸ“„ License

This project is proprietary software. All rights reserved.

🀝 Contributing

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

HSS Secure – Third Place Winner πŸ₯‰ | Cybersecurity Hackathon | Simplifying Healthcare Staff Management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors