This project is a Spring Boot-based microservices architecture application. The application provides writing and reading services that store and query text data. The microservices are built using Spring Cloud Gateway, Eureka, Config Server, PostgreSQL, MongoDB, and Redis.
Clone the repository:
git clone https://github.com/Hattatoglu/read_write_api.git
cd read_write_api
Update project IPs in servers and services application.properties and docker compose yml files.
Download Maven dependencies and build the project:
mvn clean install
To create Docker images for each service, navigate to the respective directories and run:
docker build -t <<image-name>> .
Use Docker Compose to start the services:
cd docs/docker-compose
docker-compose <<image-name>> up -d
Necessary routing and load balancing configurations are done in the server-gateway
module.
Eureka Server configurations are done in the server-discovery
module. All services register with Eureka Server.
Necessary settings for centralized configuration management are done in the server-config
module.
Separate Docker Compose files for each service can be found in the docs/docker-compose
folder. You can run the services independently or all together.
Example JSON request bodies can be found in the docs/request-bodies
folder. These files can be used for create, read, delete, and update operations.
If you want to contribute, please send a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE
file for more information.