Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samarth30/gatsby
https://github.com/samarth30/gatsby
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/samarth30/gatsby
- Owner: samarth30
- Created: 2021-04-05T20:15:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-01T14:01:15.000Z (almost 3 years ago)
- Last Synced: 2023-03-03T02:31:38.874Z (almost 2 years ago)
- Language: TypeScript
- Homepage: gatsby-samarth30.vercel.app
- Size: 135 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```