Skip to content

deepak1410/task-management

Repository files navigation

Architecture

graph TD
    A[task-management] --> B[identity-service]
    A --> C[task-service]
    A --> D[common-lib]
    B --> E[(Postgres)]
    C --> F[(Postgres)]
    B & C --> G[Redis]
Loading

How to Run

  • Build project: Run the following command from root.
mvn clean install -DskipTests

  • Run all the services via Docker compose

    • Run all the services (Simplest)
      docker-compose --env-file .env up --build
      
  • Alternately, Run only postgres, pgadmin, and redis services using docker

    docker-compose --env-file .env up --build postgres pgadmin redis
    
    • Run identity-service, task-service, and api-gateway using Intellij

Useful Docker commands

  • To Stop and remove All Containers, but not volumes or images
docker-compose down
  • Running in detached mode:
docker-compose --env-file .env up -d
  • If code or Dockerfiles have been changed, use --build in the command.
docker-compose --env-file .env up -d --build
  • If you ever want to remove everything (containers, networks, volumes):
docker-compose down -v
  • To Check Status of Running Containers
docker ps
  • And to see logs for a service:
docker logs identity-service
  • To stream logs live:
docker-compose logs -f

Connect to Database using DBeaver

  • Open DBeaver → Database > New Connection.
  • Choose PostgreSQL.
  • Fill details:
    • Host: localhost
    • Port: 5432
    • Database: keep empty and tick the checkbox "Show all Databases"
    • Username: value of ${POSTGRES_USER}
    • Password: content of secrets/postgres_password.txt
  • Test connection and Save.
  • To access PgAdmin, use URL http://localhost:6070/browser/ with credentials defined in .env file.

API Documentation

Project Documentation

About

A microservice based project for doing task management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages