Giter Site home page Giter Site logo

java-assignment-final's Introduction

Doctor Application

Overview

This Doctor Application provides a platform for doctors to register and manage their patients. The application includes functionality to add doctors and patients, associate symptoms with specialties, and suggest doctors based on patient symptoms and location.

Technologies Used

  • Spring Boot: For creating RESTful APIs.
  • Hibernate: For ORM (Object Relational Mapping).
  • H2 Database: An in-memory database for development and testing.
  • Lombok: To reduce boilerplate code.
  • Swagger: For API documentation.
  • Gradle: For project build and dependency management.

Dependencies

The project uses the following dependencies:

groovy dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'com.h2database:h2' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' }

Running the Application Prerequisites Ensure you have Java Development Kit (JDK) installed. Ensure you have Gradle installed. If not, you can use the Gradle wrapper provided in the project. Building and Running

Clone the repository: git clone https://github.com/iKunal1/Java-Assignment-final cd DoctorApplication

Build the project using Gradle: ./gradlew build

Run the application: ./gradlew bootRun

API Endpoints Doctor Endpoints Add a Doctor

URL: /api/doctors Method: POST Payload:

POST : http://localhost:8080/api/doctors

/api/doctors { "name": "Kunal Singh", "city": "NOIDA", "email": "[email protected]", "phoneNumber": "0987654321", "symptom": "Arthritis" }

Patient Endpoints Add a Patient

URL: /api/patients Method: POST

POST : http://localhost:8080/api/patients

{ "name": "Rohit Sharma", "city": "Gurgaon", "email": "[email protected]", "phoneNumber": "0987654321", "symptom": "Arthritis" }

Edge Cases No Doctor in Patient's Location:

Response: We are still waiting to expand to your location No Doctor for Patient's Symptom in Location:

Response: There isn’t any doctor present at your location for your symptom

image image

java-assignment-final's People

Contributors

ikunal1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.