Giter VIP home page Giter VIP logo

spring-web-experiments's Introduction

Find Minimum Fleet Engineers to Help the Manager :)

The Problem

Find the minimum number of FEs which are required to help the FM so that every scooter in each district of Berlin is maintained. Note that you may choose which district the FM should go to.

Stack

  • String WebFlux + Spring Boot
  • Lombok (please don't forget to enable annotation processing in the compiler)
  • Netty as HTTP Non-blocking IO
  • Spring Test + Junit
  • Gradle For Building

There are comments through the code that explain some small decisions and the thought process

###Running the App

The Solution runs behind an HTTP layer that has the following endpoint

/fleet-engineers/minimum-engineers

#####E.g:

http://localhost:8080/fleet-engineers/minimum-engineers

It can either be started from an Idea, such as IntelliJ IDEA, by running the class org.spring.web.experiments.springwebexperiments.SpringWebExperimentsApplication or by executing the jar created from after the build.

Then an HTTP client, or curl should be used against the endpoint above in a POST request using the format below:

{ scooters: [11, 15, 13],
C: 9,
P: 5
}

###Building

The application is built using gradle. Once gradle is installed in the running machine, the artifact can be built by using the command in a regular terminal, or Windows cmd window.

The command should be run on the project root folder

../spring-web-experiments$ gradle build 

spring-web-experiments's People

Watchers

James Cloos avatar Filipe Miranda 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.