This is a microservices application for managing proposals.
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.
The following technologies are used in this project:
- Java
- Spring Boot
- RabbitMQ
- PostgreSQL
- Docker
To run the Proposal App locally, follow these steps:
-
Clone the repository:
git clone https://github.com/leonardomeirels55/proposal-app.git
-
Configure the application properties:
Open the
application.properties
file located insrc/main/resources
and update the database connection details and RabbitMQ configuration according to your environment or env indocker-compose
. -
Run the application:
docker compose up or docker-compose up
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}
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.