https://github.com/mingderwang/python-api-vercel
https://github.com/mingderwang/python-api-vercel
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mingderwang/python-api-vercel
- Owner: mingderwang
- Created: 2020-10-10T15:58:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-28T02:59:37.000Z (over 5 years ago)
- Last Synced: 2025-03-25T08:01:38.430Z (over 1 year ago)
- Language: Python
- Homepage: python-api-vercel-three.vercel.app
- Size: 9.77 KB
- Stars: 3
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGE_LOGS.md
Awesome Lists containing this project
README
# python api server run on vercel
To have your account on https://vercel.com/ first.
# debug on localhost
```
vercel dev
```
瀏覽 http://localhost:3000
# deploy
```
vercel
```
以下 demo 網址 (python-api.ming-taiwan.vercel.app) 是我部署的 URL, 你們部署回有你們新的 URL
# demo hello
```
curl https://python-api.ming-taiwan.vercel.app/api/hello
```
[click here](https://python-api.ming-taiwan.vercel.app/api/hello)
# demo date
```
curl https://python-api.ming-taiwan.vercel.app/api/date
```
[click here](https://python-api.ming-taiwan.vercel.app/api/date)
# demo star
```
curl https://python-api.ming-taiwan.vercel.app/api/star
```
[click here](https://python-api.ming-taiwan.vercel.app/api/star)
# 你們部署的 URL 會在執行 vercel 時, 得到 (如下圖)
when you run "vercel" it will show your endpoint of the api server

# production
```
vercel --prod
```
[click here](https://python-api-alpha.vercel.app/api/star)