To run this application locally, you will need to have Java and MySQL installed on your machine.
- Clone the repository to your local machine.
- Create a new MySQL database called
Mapping
- Update the
application.properties
file in thesrc/main/resources
directory to include your MySQL username and password - Run the application using your IDE or by running the command
mvn spring-boot:run
in the project directory - Access the APIs using any HTTP client such as Postman or cURL.
The application is built using the SpringBoot framework and consists of four layers: DTO, model, service, and repository.-
- DTO -The DTO layer consists of classes that are used to transfer data between different layers of the application
- Controller - The controller layer handles the HTTP requests, translates the JSON parameter to object, and authenticates the request and transfer it to the business (service) layer. In short, it consists of views i.e., frontend part.
- Service -The business layer handles all the business logic. It consists of service classes and uses services provided by data access layers.
- Repository - This layer mainatains the h2-database thing on which CRUD operations are performed
- Model - This layer consists basically the class level things- the various classes required for the project and these classes consists the attributes to be stored.
The API endpoints will be available at http://localhost:8080.
Doctor Patient Appointment
This project includes the basic design of the backend of DoctorApp, including user and Doctor models, and API endpoints for user authentication and post creation/retrieval.