andrehgustavo / clinica-medica

Projeto de gerenciamento de uma clínica médica.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clinica-medica

Medical Clinics management system.

Spring-Boot Version License

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.

Requirements

For building and running the application you need:

Installation

  1. Clone the repository
git clone https://github.com/andrehgustavo/clinica-medica.git
  1. 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.

Usage example

  • 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;

Development setup

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

Endpoints

- [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}")

Meta

André Gustavo Barros – @andrehgustavoandreh_gustavo@hotmail.com

clinica-medica

About

Projeto de gerenciamento de uma clínica médica.


Languages

Language:JavaScript 82.3%Language:Java 10.9%Language:HTML 6.2%Language:CSS 0.7%