Git Product home page Git Product logo

python-api-vercel's Introduction

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

demo date

curl https://python-api.ming-taiwan.vercel.app/api/date

click here

demo star

curl https://python-api.ming-taiwan.vercel.app/api/star

click here

你們部署的 URL 會在執行 vercel 時, 得到 (如下圖)

when you run "vercel" it will show your endpoint of the api server

production

vercel --prod

click here

python-api-vercel's People

Contributors

log4analytics avatar mingder78 avatar mingderwang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

python-api-vercel's Issues

Unable to use Chinese characters in request url.

do curl https://python-api-vercel-seven.vercel.app/api/date?a=a
get response 2020-11-02 16:30:40

however when curl https://python-api-vercel-seven.vercel.app/api/date?a=%E5%95%8A
it returns NO_RESPONSE_FROM_FUNCTION

in log, it shows:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.