https://github.com/fzf404/server
๐ซ Service ( ไพฟๆฐๆๅก )
https://github.com/fzf404/server
flask vue
Last synced: about 2 months ago
JSON representation
๐ซ Service ( ไพฟๆฐๆๅก )
- Host: GitHub
- URL: https://github.com/fzf404/server
- Owner: fzf404
- Created: 2021-11-17T03:09:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T02:15:38.000Z (over 3 years ago)
- Last Synced: 2025-01-22T16:49:23.262Z (over 1 year ago)
- Language: Python
- Homepage: https://server.fzf404.art
- Size: 1010 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ๆๅก
> ไธบๅๅญฆไปฌๆไพไธ็ณปๅๅฅฝ็จ็ๅทฅๅ
ท
>
> ไฝฟ็จ Flask + Vue3 ๅผๅ
>
> [็ฝ็ซๅ
ฅๅฃ](http://server.fzf404.art/#/)
## ่ฏดๆ
- ๅ็ซฏ
```bash
web/src
โโโ App.vue
โโโ assets
โ โโโ logo.png
โโโ components
โโโ main.js
โโโ pages # ๅ
จ้จ้กต้ข
โ โโโ 404.vue
โ โโโ auto-report.vue
โ โโโ auto-temp.vue
โ โโโ chat.vue
โ โโโ error.vue
โ โโโ exam-info.vue
โ โโโ feed.vue
โ โโโ index.vue
โ โโโ reward.vue
โ โโโ stop-report.vue
โ โโโ stop-temp.vue
โ โโโ success.vue
โโโ router # ่ทฏ็ฑ
โ โโโ router.js
โโโ utils # ๅทฅๅ
ท
โโโ chat.js
โโโ request.js
โโโ theme.js
โโโ warning.js
```
- ๅ็ซฏ
```bash
end
โโโ data # ๆฐๆฎ
โ โโโ auto-report.csv
โ โโโ auto-temp.csv
โ โโโ exam-info.csv
โ โโโ stop.csv
โโโ logs # ๆฅๅฟ
โ โโโ app.log
โ โโโ auto-report.log
โ โโโ auto-temp.log
โ โโโ chat.log
โโโ templates # ้ฎไปถๆจกๆฟ
โ โโโ report.html
โ โโโ temp.html
โโโ app.py # flask ๆ ธๅฟ
โโโ auto_report.js # ๅฅๅบทๅกซๆฅ
โโโ auto_report.py # ๅฅๅบทๅกซๆฅไฟกๆฏๅค็
โโโ auto_report_test.js # ๅฅๅบทๅกซๆฅๆต่ฏ
โโโ auto_temp.py # ๆ้ฎๅกซๆฅ
โโโ config.py # ้
็ฝฎ
โโโ exam_info.py # ่่ฏไฟกๆฏ
โโโ utils.py # ๅทฅๅ
ท
โโโ package-lock.json
โโโ package.json
```
## ้จ็ฝฒ
- ๅ็ซฏ
```bash
cd web
npm install
npm run build
python3 -m http.server 80 -d ./dist
```
- ๅ็ซฏ
```bash
pip3 install -r requires.txt # py ไพ่ต
cd end
npm install # node ไพ่ต
apt install chromium-browser
# ่ฟ่ก
python3 app.py
# ้จ็ฝฒ
apt install
pm2 --name=server start "gunicorn -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:8080 app:app"
# ๅฎๆถๆง่ก
crontab -e
0 0 8,13,18 * * cd /opt/server/end && python3 main.py
0 8 * * * cd /opt/server/end && node auto_report.js
```