Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1 KB

README.md

File metadata and controls

57 lines (36 loc) · 1 KB

User Service

The User Service is an Express.js application that handles user-related operations.

Getting Started

Prerequisites

  • Docker
  • Docker Compose

Installation

  1. Navigate to the apps/user-service directory:

    cd apps/user-service
  2. Build the Docker image:

    docker build -t user-service .
  3. Run the Docker container:

    docker run -p 4001:4001 user-service

Running with Docker Compose

  1. Navigate to the root directory of the project:

    cd ../../
  2. Start the services using Docker Compose:

    docker-compose up -d

The User Service will be available at http://localhost:4001.

Project Structure

  • index.js: The main entry point of the application.
  • Dockerfile: Docker configuration for building the service.

API Endpoints

  • GET /users: Retrieve a list of users.
  • POST /users: Create a new user.
  • GET /users/:id: Retrieve a user by ID.