Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bookworms API

API server for bookworms web app written in Go and hosted on Vercel as serverless functions.

Prerequisite

Vercel cli must be installed for local development.

$ npm install -g vercel

Development

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.

References: