https://github.com/robertcoopercode/markeau-match-card
https://github.com/robertcoopercode/markeau-match-card
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertcoopercode/markeau-match-card
- Owner: robertcoopercode
- Created: 2022-05-24T00:49:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T02:53:17.000Z (about 3 years ago)
- Last Synced: 2025-06-08T06:02:43.297Z (about 1 year ago)
- Language: TypeScript
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Run `yarn vercel` to have a local development server at `http://localhost:3001`. The web app can then call the API at `http://localhost:3000/api/pdf` with the expected JSON body in a POST request.
~~Using a service called [Browserless](https://www.browserless.io/) that will run chrome used for puppeteer in order to stay under the vercel function size limit of 50 mb.~~
Update: Now hosting my own version of Browserless on [Railway](https://railway.app) using the [browserless/chrome](https://github.com/browserless/chrome#docker) docker image. This is because the free tier of Browserless only allows 1000 requests per month, and I was hitting that limit somehow (I don't know how since my soccer league doesn't have many PDF download requests.). Railway has a free hosting plan so I can use that for free.