Git Product home page Git Product logo

employeesvc's Introduction

How to run

employeesvc runs on port 8080 and eventsvc on port 8090

Swagger for employee controller is on http://localhost:8080/swagger-ui.html

Swagger for event controller is on http://localhost:8090/swagger-ui.html

I have configured h2 so that both services use the same in-memory database.

The web console for h2 is available on http://localhost:8080/console

The application.yml assumes the following kafka configuration:

kafka: brokerAddress: localhost:9092 topic: employee

A topic 'employee' should be created on Kafka.

So a kafka instance should work locally on port 9092. Of course, that is completely configurable.

How to execute (both services): mvn spring-boot:run

Please, start first the employeesvc, as this is the service where the H2 database is defined.

Extra dependencies

I have used lombok for some boilerplate code. ModelMapper for Entity-Dtos Mapping

Extra notes

Unit tests have been not created, because the time to develop everything was too much for a "test". I would not deliver a real, production application without unit tests, but this is not a commercial application. The whole system has been tested locally and works as it is expected. There could be corner cases that have been not covered, but again I consider this to be only a test.

employeesvc's People

Contributors

angel-asensio avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.