Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samarth30/gatsby


https://github.com/samarth30/gatsby

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# pancake-api

Set of endpoints utilities for PancakeSwap, based on Serverless.

## Dependencies

- [Vercel CLI](https://vercel.com/download)
- Required to emulate local environment (serverless functions).

# Development

## Install requirements

```shell
yarn global add vercel
```

## Build

```shell
# Install dependencies
yarn

# Build project
vercel dev
```

Endpoints are based on filename inside the `api/` folder.

```shell
# 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:

```shell
vercel --prod
```