Skip to content

RedbeanGit/polyshop-shipping

Repository files navigation

Shipping

Description

The Shipping microservice is a fictitious shipping service that does nothing but receive messages from the Order microservice and randomly sends an event indicating the success or failure of a shipment. It was developed as part of a course project on creating microservices using RabbitMQ for communication between services.

Technologies Used

  • Programming Language: Java with Spring Boot
  • Message Queue: RabbitMQ
  • Containerization: Docker

Installation and Configuration

  1. Clone the GitHub repository:
git clone git@github.com:RedbeanGit/polyshop-shipping.git
  1. Install Docker and Docker Compose on your machine if you haven't already. You can follow the installation instructions on Docker's official website: https://docs.docker.com/get-docker/ and https://docs.docker.com/compose/install/.

  2. Navigate to the Shipping microservice directory:

cd polyshop-shipping
  1. Launch Docker Compose to start the necessary containers:
docker-compose up -d

Now you can choose to run the Shipping service inside a docker container or directly on your host.

Running with docker

  1. Build the Docker image for the microservice using the provided Dockerfile:
docker build -t polyshop-shipping .
  1. Run the container from the image you have just builded:
docker run --name polyshop_shipping polyshop-shipping

Running on host

  1. Start Spring Boot application:
./mvnw spring-boot:run

Message Queue

The Shipping microservice listens for messages from the Order microservice and sends events upon successful or unsuccessful shipments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published