add
This commit is contained in:
37
README.md
37
README.md
@@ -0,0 +1,37 @@
|
||||
# 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/*`.
|
||||
|
||||
Reference in New Issue
Block a user