{"id":35048086,"url":"https://github.com/rahulp0817/doctor-appointment-booking","last_synced_at":"2026-04-24T18:01:43.110Z","repository":{"id":327353307,"uuid":"1108674983","full_name":"rahulp0817/doctor-appointment-booking","owner":"rahulp0817","description":"An Appointment booking system ","archived":false,"fork":false,"pushed_at":"2025-12-04T09:14:04.000Z","size":854,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T23:03:02.121Z","etag":null,"topics":["calendly","nextjs","rest-api","shadcn-ui"],"latest_commit_sha":null,"homepage":"https://doctor-appointment-booking-orpin.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rahulp0817.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-02T19:06:05.000Z","updated_at":"2025-12-04T09:14:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rahulp0817/doctor-appointment-booking","commit_stats":null,"previous_names":["rahulp0817/doctor-appointment-booking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahulp0817/doctor-appointment-booking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulp0817%2Fdoctor-appointment-booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulp0817%2Fdoctor-appointment-booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulp0817%2Fdoctor-appointment-booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulp0817%2Fdoctor-appointment-booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahulp0817","download_url":"https://codeload.github.com/rahulp0817/doctor-appointment-booking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulp0817%2Fdoctor-appointment-booking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32234730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendly","nextjs","rest-api","shadcn-ui"],"created_at":"2025-12-27T09:01:23.979Z","updated_at":"2026-04-24T18:01:38.072Z","avatar_url":"https://github.com/rahulp0817.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Appointment Booking System\nBelow is a fully polished, production-ready **GitHub-style README** for your Appointment Booking System.\nAll images are referenced from the `public` folder, the formatting is clean, and the document is structured exactly how top GitHub repositories present their projects.\n\nCopy-paste directly into your `README.md`.\n\n---\n\n# Appointment Booking System\n\nA full-stack appointment and assessment scheduling system built using **Next.js** and **Calendly’s Scheduling API**.\nThis application allows users to select a doctor or assessment type, choose a date and time, enter personal details, and confirm their booking.\nAll scheduling operations are validated and executed through Calendly for accuracy and reliability.\n\n---\n\n## Features\n\n* Modern Next.js frontend with a smooth multi-step booking flow\n* Calendly API integration for real scheduling\n* Input validation for name, email, phone, and reason\n* Timezone-aware scheduling (`Asia/Kolkata`)\n* API success and error handling\n* Fully deployable on Vercel\n\n---\n\n## Tech Stack\n\n* **Next.js 16+ (App Router)**\n* **Node.js**\n* **Calendly REST API**\n* **Axios**\n* **Tailwind CSS**\n\n---\n\n## Environment Variables\n\nCreate a `.env` file in the root directory:\n\n```\nCALENDLY_ACCESS_TOKEN=\nCALENDLY_USER_URI=https://api.calendly.com/users/{id}\nNEXT_PUBLIC_APP_URL=http://localhost:3000\n```\n\n---\n\n## Getting Started\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nStart the development server:\n\n```bash\nnpm run dev\n```\n\nVisit the app at:\n\n```\nhttp://localhost:3000\n```\n\n---\n\n## Live Deployment\n\nThe application is deployed on Vercel:\n\n[https://doctor-appointment-booking-orpin.vercel.app/](https://doctor-appointment-booking-orpin.vercel.app/)\n\n---\n\n## Booking Flow Screenshots\n\nAll images are served from the `public/` directory.\n\n### Step 1: Home Page\n\n![Home Page](./public/image-1.png)\n\n---\n\n### Step 2: Select Department / Assessment\n\n![Step 2](./public/image-2.png)\n\n---\n\n### Step 3: Choose Date \u0026 Time\n\n![Step 3](./public/image-3.png)\n\n---\n\n### Step 4: Enter Personal Information\n\n![Step 4](./public/image-4.png)\n\n---\n\n### Step 5: Confirm Booking\n\n![Confirmation Page](./public/image.png)\n\n### Conformation Mail\n\n![Conformation Mail](./public/Mailimage.png)\n\n### Calendly Scheduled Meetings\n\n![Calendly Mettings](./public/MeetingsCalendly.png)\n---\n\n## API Overview\n\n### POST `/api/schedule`\n\nSchedules an appointment through Calendly.\n\n#### Example Request\n\n```json\n{\n  \"eventTypeId\": \"b7c9f6eb-7420-429d-9687-bd288114a4b2\",\n  \"name\": \"Rahul Pradhan\",\n  \"email\": \"pradhanrahul227@gmail.com\",\n  \"phone\": \"+91 7847747488\",\n  \"reason\": \"Health issues\",\n  \"startTime\": \"2025-12-10T20:00:00.000Z\",\n  \"timezone\": \"Asia/Kolkata\"\n}\n```\n\n#### Example Response (Success)\n\n```json\n{\n  \"success\": true,\n  \"message\": \"Appointment scheduled successfully.\",\n  \"data\": {\n    \"uri\": \"https://api.calendly.com/scheduled_events/{event-id}\"\n  }\n}\n```\n\n#### Example Response (Error)\n\n```json\n{\n  \"success\": false,\n  \"error\": \"Invalid parameters or unavailable time slot.\"\n}\n```\n\n---\n\n## Folder Structure\n\n```\n/app\n  /api\n    /schedule\n      route.js\n/public\n  image.png\n  image-1.png\n  image-2.png\n  image-3.png\n  image-4.png\n/utils\n  calendly.js\n.env\nREADME.md\n```\n\n---\n\n## License\n\nThis project is open-source and available under the MIT License.\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulp0817%2Fdoctor-appointment-booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulp0817%2Fdoctor-appointment-booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulp0817%2Fdoctor-appointment-booking/lists"}