Skip to content

Repository files navigation

Parking Booking (Next.js, Vercel)

Calendar-only booking for two spots (Northern, Southern) using Google Calendar. No DB.

Setup

  1. Enable Google Calendar API in a Google Cloud project.
  2. Create a Service Account; generate a JSON key.
  3. Share both calendars with the service account email with "Make changes to events".
  4. In Vercel Project Settings → Environment Variables, add:

API

  • POST /api/book { spot, startIso, endIso, plate } → { ref, eventId, priceCents }
  • PATCH /api/booking/[ref] { spot, startIso, endIso } → { ok }
  • DELETE /api/booking/[ref]?spot=... → { ok }
  • GET /api/availability?spot=...&start=...&end=... → { available, conflicts }

All times are in America/Toronto.

Pricing

  • $15 per 24 hours, $50 per week, $100 per month. UI shows the cheapest combination.

Notes

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages