Skip to content

becoswap/gatsby-becoswap-api

Repository files navigation

becoswap-api

Set of endpoints utilities for Becoswap, based on Serverless.

Dependencies

  • Vercel CLI
    • Required to emulate local environment (serverless functions).

Development

Install requirements

yarn global add vercel

Build

# Install dependencies
yarn

# Build project
vercel dev

Endpoints are based on filename inside the api/ folder.

# api/version.ts
curl -X GET 'localhost:3000/api/version'

# ...

Production

Deploy

Deployments to production should be triggered by a webhook when a commit, or a pull-request is merged to master.

If you need to force a deployment, use the following command:

vercel --prod

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published