Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<img width="2880" height="1531" alt="Screenshot (144)" src="https://github.com/user-attachments/assets/1667306a-ac80-45d6-8b0a-a46187f9228d" />
<img width="2880" height="1531" alt="Screenshot (144)" src="https://github.com/user-attachments/assets/1ed8ba83-b802-4e44-a210-044136b5582c" />


A full-stack web application built using the MERN stack that simplifies the process of booking, managing, and overseeing doctor appointments. This app is designed with three levels of user access, providing customized functionalities for patients, doctors, and administrators.

Expand Down
8 changes: 8 additions & 0 deletions admin/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]
}
2 changes: 1 addition & 1 deletion backend/controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const bookAppointment = async (req, res) => {

let slots_booked = docData.slots_booked;

//checking sor slots availability
//checking for slots availability
if (slots_booked[slotDate]) {
if (slots_booked[slotDate].includes(slotTime)) {
return res.json({ success: false, message: "Slot not available" });
Expand Down
20 changes: 20 additions & 0 deletions backend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 2,
"builds": [
{
"src": "server.js",
"use": "@vercel/node",
"config": {
"includeFiles": [
"dist/**"
]
}
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/server.js"
}
]
}
Loading