Skip to content

nkumashi/bob-challenge-employee-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee-Service

As its name suggests, this service is responsible for handling the employees of a company. The application must expose a REST API. It should contain endpoints to:

  • Create a department

    • Id (auto-increment)
    • Name
  • Create an employee with the following properties:

    • Uuid (generated automatically)
    • E-mail
    • Full name (first and last name)
    • Birthday (format YYYY-MM-DD)
    • Employee’s department
  • Get a specific employee by uuid (response in JSON Object format)

  • Update an employee

  • Delete an employee

Whenever an employee is created, updated or deleted, an event related to this action must be pushed in Kafka. This event will be listened to by the event-service.

Restrictions

  • The email field is unique, i.e. 2 employees cannot have the same email.

Install and run

Requirements

  • Docker/Docker Compose
  • Maven
  • JDK 1.8
  • Git client

Running the application

  • Checkout the bob-challenge-employee-service and bob-challenge-event-service projects from github. Make sure you select the naveen branch.
  • Naviagte to the root folder of the bob-challenge-employee-service project. Launch the supporting services: ZooKeeper, Kafka and MySQL database by running the command: docker-compose up -d
  • Open the bob-challenge-employee-service project in an IDE like Eclipse/STS. Launch the application as a SpringBoot project.
  • Open the bob-challenge-event-service project in an IDE like Eclipse/STS. Launch the application as a SpringBoot project.

Application resources available:

Employee service resources:

Employee event service resources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published