Medical Clinics management system.
This project is a RestFul application, in which it is possible to register, list, edit and delete doctors and specialties and list the doctors of a specific specialty.
It were used JPA, Spring Boot and PostegreSql.
Persistence and endpoints Tests were implemented using Junit.
For building and running the application you need:
- JDK 1.8
- Maven 3 (or later)
- Postgres 13
- Clone the repository
git clone https://github.com/andrehgustavo/clinica-medica.git
- Configure PostgreSQL First, create a database named medicalDb. Then, open src/main/resources/application.properties file and change the spring datasource username and password as per your PostgreSQL installation.
- As a user, I would like to list all doctors;
- As a user, I would like to register a new doctor;
- As a user, I would like to edit an existing doctor;
- As a user, I would like to add specialties to a doctor;
- As a user, I would like to filter doctors by specialty;
- As a user, I would like to list all specialties;
- As a user, I would like to register a new specialty;
- As a user, I would like to edit a new specialty;
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the br.com.projetos.clinicamedica.ClinicaMedicaApplication class from your IDE.
Alternatively you can use the Spring Boot Maven plugin plugin like:
cd clinica-medica/clinicamedica
mvn spring-boot:run
- [GET] List all doctors ("api/doctors")
- [GET] List all doctors by a specific specialty ("/doctors/byspecialty/{specialtyId}")
- [GET] Read a doctors ("api/doctors/{id}")
- [POST] Add new doctors ("api/doctors/")
- [PUT] Update a doctors ("api/doctors/")
- [DELETE] Delete a doctors ("api/doctors/{id}")
- [GET] List all specialties ("api/specialties")
- [GET] Read a specialties ("api/specialties/{id}")
- [POST] Add new specialties ("api/specialties/")
- [PUT] Update a specialties ("api/specialties/")
- [DELETE] Delete a specialties ("api/specialties/{id}")
André Gustavo Barros – @andrehgustavo – andreh_gustavo@hotmail.com