The Product Service is an Express.js application that handles product-related operations.
- Docker
- Docker Compose
-
Navigate to the
apps/product-service
directory:cd apps/product-service
-
Build the Docker image:
docker build -t product-service .
-
Run the Docker container:
docker run -p 4003:4003 product-service
-
Navigate to the root directory of the project:
cd ../../
-
Start the services using Docker Compose:
docker-compose up -d
The Product Service will be available at http://localhost:4003.
- index.js: The main entry point of the application.
- Dockerfile: Docker configuration for building the service.
GET /products
: Retrieve a list of products.POST /products
: Create a new product.GET /products/:id
: Retrieve a product by ID.