Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macrusher/cinema-preview
Cinema City seat preview
https://github.com/macrusher/cinema-preview
Last synced: 5 days ago
JSON representation
Cinema City seat preview
- Host: GitHub
- URL: https://github.com/macrusher/cinema-preview
- Owner: MacRusher
- Created: 2023-07-22T14:29:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-25T22:49:37.000Z (over 1 year ago)
- Last Synced: 2024-04-14T06:05:28.202Z (7 months ago)
- Language: TypeScript
- Homepage: https://cc-preview.vercel.app
- Size: 875 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cinema City Seat Finder
### Installation
Dependencies:
- node@18
- npm@8```bash
npm ci
```### Local development
Proper way:
```bash
npm start
```Alternative way (to test the vercel function directly):
```bash
npm run vercel
```Note: in this approach the nextjs app and vercel functions will work, but the serverless functions in nextjs app will not!
### Testing
Run `npm run test` to check for linting and type errors.
### Deployment
Deployment is set up after each commit to the `master` branch.
#### Note
There is an issue with a too large function for a lambda.
To solve this issue we must use Vercel function directly (saves ~10MB).This in order does not work in local development, so:
- In dev we import code from original function
- During deploy, before building, the stub is removed by running `rm pages/api/getPreview.ts` in Vercel CI/CD.