/healthBooker

Primary LanguageJavaScript

HealthBooker🧑‍⚕️

Description :

This is a webapp where you can book an appointment with a doctor.

👉Click here to check out the app.

📃Features :

  • User can register and login.
  • You can view all available doctors on the site.
  • You can also update your profile.
  • You can also send your queries to us from the contact section.
  • You can view all your notifications in the notifications tab.
  • There is also an admin managment system.
  • You can only access your notications, profile, appointments, doctor application if you're logged in
  • User can also apply for becoming a doctor on our site.
  • User can book an appointment with the doctor of their own choice.
  • Admin has the control to accept any user's request to become a doctor.
  • Admin can also remove any user or doctor from the site.
  • Doctor and Admin have the control to mark if the appointment is completed.
  • User will recieve notification if their application is accepted or rejected.
  • User and Doctor will recieve notification if their appointment is completed.
  • Doctor will recieve notification if someone booked appointment with them.
  • All the data will be stored on the database so there is no chance of losing you information.

To run the project on your local machine

  1. Download the project from the git repository
  2. Add .env file in root directory for the backend which contains
  3. PORT=5000
    MONGO_URI=YOUR_OWN_MONGODB_URL
    JWT_SECRET=YOUR_JWT_SECRET
    
  4. Add .env file in client directory for the frontend which contains
  5. 
    REACT_APP_SERVER_DOMAIN=http://127.0.0.1:5000/api
    REACT_APP_CLOUDINARY_BASE_URL=https://api.cloudinary.com/v1_1/{CLOUD_NAME}/image/upload
    REACT_APP_CLOUDINARY_CLOUD_NAME=YOUR_OWN_CLOUDINARY_CLOUD_NAME
    REACT_APP_CLOUDINARY_PRESET=YOUR_OWN_CLOUDINARY_PRESET
    

    Note: Replace the {CLOUD_NAME} with your own cloudinary cloud name

  6. To run the backend, go to root directory in the terminal and execute: npm start
  7. To run the frontend, open a new terminal and run 'cd client/' to go to client directory and execute: npm start

To access the admin dashboard

  1. Download the project from the git repository
  2. You need to create your own MongoDB instance and add the MongoDB url to the .env file
  3. Register on the website and go to your MongoDB and manually change the 'isAdmin' field of the account you want to make admin in the DB to 'true' and then log in back on the site
  4. Now you will be able to access the admin dashboard

Home page

home

Sign up page

signup

Sign in page

signin

Profile page

profile

All Doctors page

doctors

Apply for doctor page

applyfordoctor

Admin all users dashboard

users

Admin all applications page

applications

Book Appointment page

bookappointment

Users all appointments page

appointments

Doctors all appointments page

appointments

Notifications page

notifications


Tools and technologies used :

html5 css3 javascript react nodejs express mongodb redux

Connect with me :

Avinash905 | LinkedIn avinashdunna