Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 1.92 KB

README.md

File metadata and controls

79 lines (57 loc) · 1.92 KB

Proposal App

This is a microservices application for managing proposals.

Table of Contents

Introduction

The Proposal App is a microservices application that allows users to create and manage proposals. It provides an API for creating new proposals, retrieving existing proposals, and sending notifications using RabbitMQ.

Technologies

The following technologies are used in this project:

  • Java
  • Spring Boot
  • RabbitMQ
  • PostgreSQL
  • Docker

Installation

To run the Proposal App locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/leonardomeirels55/proposal-app.git
  2. Configure the application properties:

    Open the application.properties file located in src/main/resources and update the database connection details and RabbitMQ configuration according to your environment or env in docker-compose.

  3. Run the application:

    docker compose up or docker-compose up

Usage

Once the application is running, you can access the API endpoints using a tool like Postman or cURL. Here are some example requests:

  • Create a new proposal:

    POST /proposal
    Content-Type: application/json
      {
      "nome": "leonardo",
      "sobrenome": "meireles",
      "telefone": "55999999",
      "cpf": "111.111.111.11",
      "renda": 100,
      "valorSolicitado": 1000,
      "prazoPagamento": 24
      }
    
  • Get all proposals:

    GET /proposal
  • Get a specific proposal:

    GET /proposal/{id}

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.