A separate REST service used in the PowerLog application to save new contacts and fetch them by date.
MIT License
ContactService is a reactive RESTful service designed to handle the creation and retrieval of contact messages. This service is used in conjunction with the PowerLog application to manage user contacts efficiently.
Clone the repository:
git clone https://github.com/hyuseinlesho/contact-service.git
Set environment variables for your database username and password:
DB_USERNAME=your_username
DB_PASSWORD=your_password
Create contact_service database
create schema contact_service;
Install and run Apache Kafka server.
Run the application.
This project uses springdoc-openapi to generate API documentation.
You can access the Swagger UI to explore and interact with the API by running the application and navigating to the following URL in your web browser:
http://localhost:8081/swagger-ui.html
Kafka Server Requirement:
Produces messages to the Kafka topic contact-topic
when a new contact is created.
Configured bootstrap servers, key and value serializers in application.yaml
file.
resources/db/migration/V1__init.sql
:This setup allows the ContactService to handle real-time notifications and efficient management of user contacts.