尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A modern health monitoring and tracking platform
HealthSense is a full-stack health monitoring web application that enables users to track vital signs, visualize health trends through interactive charts, and manage their wellness data — all through a sleek, responsive interface.檢視完整 README ↗HealthSense is a full-stack health monitoring web application that enables users to track vital signs, visualize health trends through interactive charts, and manage their wellness data — all through a sleek, responsive interface.
| Technology | Purpose |
|---|---|
| React.js | UI component library |
| Tailwind CSS | Utility-first CSS framework |
| Recharts | Health/vital data visualizations |
| Axios | HTTP client for API communication |
| Technology | Purpose |
|---|---|
| Node.js | JavaScript runtime |
| Express.js | Web application framework |
| REST API | API architecture pattern |
| JWT | Token-based authentication |
| Technology | Purpose |
|---|---|
| MongoDB | NoSQL document database |
| Mongoose | MongoDB object modeling (ODM) |
HealthSense/
├── client/ # Frontend (React)
│ ├── public/ # Static assets
│ └── src/
│ ├── assets/ # Images, icons, fonts
│ ├── components/ # Reusable UI components
│ │ ├── auth/ # Login, Register forms
│ │ ├── charts/ # Recharts visualizations
│ │ ├── dashboard/ # Dashboard widgets
│ │ ├── layout/ # Navbar, Sidebar, Footer
│ │ └── common/ # Buttons, Cards, Modals
│ ├── context/ # React Context providers
│ ├── hooks/ # Custom React hooks
│ ├── pages/ # Page-level components
│ │ ├── Dashboard.jsx
│ │ ├── Login.jsx
│ │ ├── Register.jsx
│ │ ├── Profile.jsx
│ │ └── Reports.jsx
│ ├── services/ # API service layer (Axios)
│ ├── utils/ # Helper functions
│ ├── App.jsx # Root component
│ ├── index.css # Tailwind directives
│ └── main.jsx # Entry point
│
├── server/ # Backend (Node.js + Express)
│ ├── config/ # DB connection, environment config
│ │ └── db.js
│ ├── controllers/ # Route handlers / business logic
│ │ ├── authController.js
│ │ ├── userController.js
│ │ └── healthController.js
│ ├── middleware/ # Custom middleware
│ │ ├── authMiddleware.js # JWT verification
│ │ └── errorHandler.js
│ ├── models/ # Mongoose schemas
│ │ ├── User.js
│ │ └── HealthRecord.js
│ ├── routes/ # API route definitions
│ │ ├── authRoutes.js
│ │ ├── userRoutes.js
│ │ └── healthRoutes.js
│ ├── utils/ # Helper utilities
│ │ └── generateToken.js
│ └── server.js # Express app entry point
│
├── .env.example # Environment variable template
├── .gitignore
├── package.json
└── README.md
┌─────────────┐ Axios/HTTP ┌──────────────┐ Mongoose ┌──────────┐
│ │ ←───────────────→ │ │ ←────────────→ │ │
│ React.js │ REST API + JWT │ Express.js │ ODM Layer │ MongoDB │
│ (Frontend) │ │ (Backend) │ │ (DB) │
│ │ │ │ │ │
└─────────────┘ └──────────────┘ └──────────┘
Tailwind CSS JWT Auth
Recharts Middleware
git clone https://github.com/your-username/healthsense.git
cd healthsense
Create a .env file in the server/ directory:
# Server
PORT=5000
NODE_ENV=development
# MongoDB
MONGO_URI=mongodb://localhost:27017/healthsense
# JWT
JWT_SECRET=your_jwt_secret_key_here
JWT_EXPIRE=30d
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm install
# Run backend server (from /server)
npm run dev
# Run frontend client (from /client)
npm run dev
| Service | URL |
|---|---|
| Frontend | http://localhost:5173 |
| Backend | http://localhost:5000/api |
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| POST | /api/auth/register | Register new user | Public |
| POST | /api/auth/login | Login user | Public |
| GET | /api/auth/profile | Get user profile | Private |
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| GET | /api/health | Get all health records | Private |
| POST | /api/health | Add new health record | Private |
| GET | /api/health/:id | Get single record | Private |
| PUT | /api/health/:id | Update health record | Private |
| DELETE | /api/health/:id | Delete health record | Private |
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| GET | /api/users/me | Get current user | Private |
| PUT | /api/users/me | Update user profile | Private |
{
"react": "^18.x",
"react-dom": "^18.x",
"react-router-dom": "^6.x",
"axios": "^1.x",
"recharts": "^2.x",
"tailwindcss": "^3.x"
}
{
"express": "^4.x",
"mongoose": "^7.x",
"jsonwebtoken": "^9.x",
"bcryptjs": "^2.x",
"dotenv": "^16.x",
"cors": "^2.x",
"nodemon": "^3.x"
}
| Script | Description |
|---|---|
npm run dev | Start development server |
npm run build | Build for production |
npm run preview | Preview production build |
| Script | Description |
|---|---|
npm run dev | Start with nodemon (hot reload) |
npm start | Start production server |
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License — see the LICENSE file for details.