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