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