API server for bookworms web app written in Go and hosted on Vercel as serverless functions.
Vercel cli must be installed for local development.
$ npm install -g vercel
For local development, you need to first register a Vercel account and create a new project with an environment variable MONGODB_URI
. Then link the project you created to this directory when running follow command:
$ vercel dev
If everything is OK, you should be able to access API at http://localhost:3000/api/ping.