- Create a
.envfile in the root directory with the following variables:
PORT=3000
MONGODB_URI=mongodb://127.0.0.1:27017/healthcare-chat-app
SESSION_SECRET=your-session-secret
-
Make sure MongoDB is running
-
Start the application:
npm run devor
pnpm run dev -
Register as either a doctor or patient
-
Log in with your credentials
-
For patients: Browse available doctors and initiate chats
-
For doctors: View patient requests and respond to chats
-
Messages are saved and can be viewed in the conversation history