Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dongju-na/spring-cloud-sample
Spring MSA architecture Sample Project
https://github.com/dongju-na/spring-cloud-sample
gradle jdk17 msa springcloud springcloud-config springcloud-demo springcloud-eureka springcloud-example springcloud-gateway
Last synced: 3 months ago
JSON representation
Spring MSA architecture Sample Project
- Host: GitHub
- URL: https://github.com/dongju-na/spring-cloud-sample
- Owner: DongJu-Na
- Created: 2023-11-23T03:03:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T09:51:43.000Z (11 months ago)
- Last Synced: 2024-10-05T04:21:23.007Z (4 months ago)
- Topics: gradle, jdk17, msa, springcloud, springcloud-config, springcloud-demo, springcloud-eureka, springcloud-example, springcloud-gateway
- Language: Java
- Homepage:
- Size: 95.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-cloud-sample ![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white) ![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge&logo=spring&logoColor=white) ![Gradle](https://img.shields.io/badge/Gradle-02303A.svg?style=for-the-badge&logo=Gradle&logoColor=white)😎
Spring MSA architecture Sample ProjectWelcome to the Spring Cloud Microservices Project! This project is designed to demonstrate the implementation of microservices architecture using Spring Cloud in a multi-module Gradle project. The project is structured to include Eureka Server, Config Server, and Gateway Server.
Config Git Here
[![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/DongJu-Na/spring-cloud-sample-config-repo)## Project Structure
The project is organized into the following modules:
- **eureka-server**: Eureka Server module responsible for service registration and discovery.
- **config-server**: Config Server module handling externalized configuration for microservices.
- **gateway-server**: Gateway Server module serving as the entry point for all microservices.
- **dummy-api-server**: This is a dummy API server for testing.## Prerequisites
Make sure you have the following prerequisites installed:
- Java 17
- Gradle
- Lombok plugin for your IDE (for annotation processing)## Getting Started
To build and run the project, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/your-username/spring-cloud-sample.git
cd spring-cloud-sample
```2. Build the project:
```bash
./gradlew build
```3. Run the Eureka Server:
```bash
./gradlew :eureka-server:bootRun
```4. Run the Config Server:
```bash
./gradlew :config-server:bootRun
```5. Run the Gateway Server:
```bash
./gradlew :gateway-server:bootRun
```
6. Run the Dummy API:```bash
./gradlew :dummy-api:bootRun
```Now, you have the extended microservices architecture up and running locally.
## Project Dependencies
- Spring Boot: Rapid application development platform for building stand-alone, production-grade Spring-based applications.
- Spring Cloud: Set of tools for building and orchestrating microservices.
- Lombok: Library simplifying Java code and eliminating boilerplate code for better readability.## Additional Information
- For detailed documentation and guides, refer to the [Spring Cloud Documentation](https://spring.io/projects/spring-cloud).
- Explore each module's `build.gradle` file for specific dependencies and configurations.Feel free to contribute, report issues, or provide feedback. Happy coding! 🚀