WP Manifestindependent plugin directory
manifest / utilities / hospital-manager

Hospital Manager

A Comprehensive Hospital Manager System for the WordPress EcoSystem

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/samybaxy/hospital-manager/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Hospital Manager WordPress Plugin

A WordPress plugin for hospital management with a modern React frontend built with Vite and styled with Tailwind CSS.

Development Setup

Prerequisites

  • Node.js (v18+)
  • Yarn package manager
  • WordPress development environment

Installation

  1. Clone this repository into your WordPress plugins directory
  2. Navigate to the plugin directory
    cd /path/to/wp-content/plugins/hospital-manager
  3. Install dependencies using Yarn
    yarn install

Development Workflow

You can use either Yarn directly or the provided development script:

Using Yarn

To start development with hot reloading:

yarn dev

To build assets for production:

yarn build

To watch for changes and rebuild automatically:

yarn watch

Using the Development Script

We've included a convenient script to manage common development tasks:

# Install dependencies
./dev.sh install

# Start development server
./dev.sh dev

# Build for production
./dev.sh build

# Watch for changes
./dev.sh watch

# Show help
./dev.sh help

WordPress Integration

The plugin uses a shortcode [hospital_manager] to render the React application on any WordPress page or post.

Project Structure

hospital-manager/
├── app/                     # PHP application files
│   ├── Controllers/         # MVC controllers
│   ├── Models/              # MVC models
│   └── Views/               # MVC views
├── assets/                  # Frontend assets
│   ├── css/
│   │   ├── dist/            # Compiled CSS
│   │   └── src/             # Source CSS (with Tailwind)
│   └── js/
│       ├── dist/            # Compiled JS bundle
│       └── src/             # React source files
├── node_modules/            # Node dependencies (not versioned)
├── package.json             # Node dependencies and scripts
├── tailwind.config.js       # Tailwind configuration
├── postcss.config.js        # PostCSS configuration
└── vite.config.js           # Vite bundler configuration

Tailwind CSS

This project uses Tailwind CSS for styling. You can customize the theme in tailwind.config.js.

Custom utility classes are defined in assets/css/src/frontend.css using the @layer components directive.