Skip to content

My First complete project in Golang. Contains API to manage a doctor reservation system

Notifications You must be signed in to change notification settings

midd-96/DearDoctor

Repository files navigation

Dear Doctor

This is Restfull API build in Golang for booking consultaion slot of various doctors registered.

Technologies Used

  • Chi router : To handle HTTP requests.
  • PosgreSQL : Used as my database.
  • GORM : Used to automigrate tables.
  • Go-MySQL-Driver : To write Sql queries.
  • Razor-pay : To make payments.
  • Docker : API and database fully dockerised.
  • AWS : Hosted in AWS EC2.
  • JWT-Token, Pagination, Filltering etc

Architecture

In this project we follows the Clean Architecture concept by Uncle Bob 1_HwV1WkWjf9mnECGcB94lpA

Features

  • SignUp and SignIn by Admin, Doctor, Users.

  • Email verification done for Doctors and Users

  • Admin can add new departments.

  • Admin can approve Doctors.

  • Admin can list all Doctors and Users.

  • Admin can fetch all appointments. Can also filter by Day, Doctor.

  • Admin can approve Payout requests done by Doctors.

  • Doctors can add thier availability.

  • Doctors dashboard will show all confirmed appointments.

  • Doctors can request for payout.

  • Doctors can add thier bank account details for recieving payout.

  • Users can make appointments for consultation.

  • Users can pay consultation fee using razorpay or COD.

Environment Variables

To run this project locally, you will need to add the following environment variables to your .env file

To configure database connecton following environment variables are required :- DB_HOST DB_DRIVER DB_USER DB_PASSWORD DB_NAME DB_PORT

PORT : for running locally

ADMIN_KEY : To generate token for admin

DOCTOR_KEY : To generate token for doctor

USER_KEY : To generate token for user

To sent E-mail following environment variables are required :- SMTP_PORT SMTP_HOST SMTP_PASSWORD SMTP_USERNAME

View APIs

https://www.postman.com/middwyd/workspace/dear-doctor/collection/23728396-39993696-f596-4226-a05b-246b920d1e55?action=share&creator=23728396midd

Screenshots

APIs for Admin

Screenshot 2022-09-19 191215

APIs for Doctors

Screenshot 2022-09-19 191539

APIs for Users

Screenshot 2022-09-19 191703

Connect with me

Phone : +91 9995 709722

Email : midlaj9995@gmail.com

LinkedIn: muhammedali midhilaj

About

My First complete project in Golang. Contains API to manage a doctor reservation system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published