Files
nursing-home/README.md
王子琦 cc7d8f30ff add
2026-01-20 11:32:46 +08:00

38 lines
914 B
Markdown

# Nursing Home Management
This repository contains a Spring Boot backend and a Vue 2 + ElementUI frontend for a nursing home management system.
## Tech Stack
- Backend: Spring Boot 3, Sa-Token, MyBatis, MySQL
- Frontend: Vue 2, Axios, ElementUI
## Setup
### 1) Database
1. Create a MySQL database and import the schema:
- File: backend/sql/schema.sql
2. Update database connection in backend/src/main/resources/application.yml.
Default admin account:
- username: admin
- password: admin123
### 2) Backend
```bash
cd backend
mvn spring-boot:run
```
### 3) Frontend
```bash
cd frontend
npm install
npm run serve
```
Frontend will run at http://localhost:5173 and proxy to the backend at http://localhost:8080.
## Notes
- Family users can register via the Register page (needs matching elder ID card in the database).
- File uploads are stored in the backend `uploads` folder and served at `/files/*`.