Spaces:
Sleeping
Sleeping
Vu Minh Chien
commited on
Commit
·
cd66431
1
Parent(s):
24e8af1
Add app.py and requirements.txt to fix Hugging Face Space configuration
Browse files- README.md +43 -2
- app.py +10 -0
- requirements.txt +3 -0
README.md
CHANGED
@@ -4,8 +4,49 @@ emoji: 🔥
|
|
4 |
colorFrom: red
|
5 |
colorTo: blue
|
6 |
sdk: docker
|
|
|
7 |
pinned: false
|
8 |
-
license:
|
9 |
---
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
colorFrom: red
|
5 |
colorTo: blue
|
6 |
sdk: docker
|
7 |
+
app_port: 7860
|
8 |
pinned: false
|
9 |
+
license: mit
|
10 |
---
|
11 |
|
12 |
+
# 🚀 Houzou Medical Notification Server
|
13 |
+
|
14 |
+
Node.js server để gửi Firebase Cloud Messaging (FCM) notifications tới Houzou Medical Flutter App.
|
15 |
+
|
16 |
+
## 🔧 Tính năng
|
17 |
+
|
18 |
+
- ✅ Gửi notification điều hướng về Home screen
|
19 |
+
- ✅ Gửi notification điều hướng về Product Detail screen
|
20 |
+
- ✅ Hỗ trợ gửi notification theo topic (nhiều thiết bị)
|
21 |
+
- ✅ Quản lý FCM tokens
|
22 |
+
- ✅ API endpoints đầy đủ
|
23 |
+
|
24 |
+
## 📡 API Endpoints
|
25 |
+
|
26 |
+
### Health Check
|
27 |
+
```
|
28 |
+
GET /
|
29 |
+
```
|
30 |
+
|
31 |
+
### Register Device
|
32 |
+
```
|
33 |
+
POST /register-token
|
34 |
+
```
|
35 |
+
|
36 |
+
### Send Broadcast Notification
|
37 |
+
```
|
38 |
+
POST /send-broadcast-notification
|
39 |
+
```
|
40 |
+
|
41 |
+
### Test Firebase
|
42 |
+
```
|
43 |
+
GET /test-firebase
|
44 |
+
```
|
45 |
+
|
46 |
+
## 🔗 Documentation
|
47 |
+
|
48 |
+
Xem thêm tại [GitHub Repository](https://github.com/yourusername/houzou-medical-app)
|
49 |
+
|
50 |
+
---
|
51 |
+
|
52 |
+
**Server chạy trên port 7860 via Docker**
|
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Houzou Medical Notification Server
|
3 |
+
This is a Node.js server running via Docker.
|
4 |
+
This Python file is only here to satisfy Hugging Face Spaces requirements.
|
5 |
+
The actual server is in server.js and runs via Dockerfile.
|
6 |
+
"""
|
7 |
+
|
8 |
+
print("This is a Docker-based Node.js application.")
|
9 |
+
print("Please check the Dockerfile for the actual server configuration.")
|
10 |
+
print("The Node.js server runs on port 7860.")
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
# This is a Docker-based Node.js application
|
2 |
+
# The actual dependencies are in package.json
|
3 |
+
# This file is only here to satisfy Hugging Face Spaces requirements
|