Skip to content

Sench0wLeo/scheduling-system

Repository files navigation

护士排班系统 (Nurse Scheduling System)

一个基于 Figma 设计稿实现的护士排班管理系统。该系统提供了一个现代化的界面,用于管理护士信息、排班计划和报表查看。

🚀 技术栈

前端 (Frontend)

  • 框架: React 18
  • 构建工具: Vite
  • 编程语言: TypeScript
  • 样式: Tailwind CSS
  • 组件库: shadcn/ui (基于 Radix UI)
  • 图标: Lucide React
  • 图表: Recharts

后端 (Backend)

  • 框架: FastAPI (Python 3.12+)
  • 数据库: PostgreSQL
  • ORM: SQLAlchemy
  • 依赖管理: pip (requirements.txt)

🛠️ 本地开发指南

1. 克隆项目

git clone https://github.com/Sench0wLeo/scheduling-system.git
cd scheduling-system

2. 后端配置 (Backend Setup)

  1. 进入 backend 目录:
    cd backend
  2. 创建虚拟环境:
    python -m venv .venv
    source .venv/bin/activate  # Windows: .venv\Scripts\activate
  3. 安装依赖:
    pip install -r requirements.txt
  4. 配置环境变量: 在项目根目录创建 .env 文件并配置数据库连接:
    DATABASE_URL=postgresql://用户名:密码@localhost:5432/数据库名
  5. 启动后端:
    uvicorn main:app --reload --port 8000

3. 前端配置 (Frontend Setup)

  1. 在项目根目录执行:
    npm install
  2. 启动开发服务器:
    npm run dev
    前端默认运行在 http://localhost:5173

📱 移动端支持

项目包含一个 mp-wrapper 目录,用于快速将系统包装为微信小程序。你可以使用微信开发者工具打开该目录进行调试。

📦 项目结构

  • /src: 前端源代码
  • /backend: 后端 FastAPI 源代码
  • /mp-wrapper: 微信小程序包装器
  • start_frontend.bat: Windows 下快速启动前端脚本
  • start_backend.bat: Windows 下快速启动后端脚本

📄 许可证

本项目采用 MIT 许可证。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors