Code Monkey home page Code Monkey logo

s02e03's Introduction

Javafaktura s02e03 - Spring MVC - REST in peace

.images/javafaktura.png

How to read this repository?

This branch contains all implemented features.

Feel free to:

  • clone this repository ๐Ÿ˜ƒ
  • fork this repository ๐Ÿ‘ฝ
  • break things ๐Ÿ˜…
  • implement new features ๐Ÿ˜Ž
  • provide pull request to repository ๐Ÿ˜

Let's choose baby name

Once Java Programmer was expecting to have baby, actually 2 babies.
He wrote a program to choose names for his newborns.
Unexpectedly triplets were born and they got the names:
Adam, Frank and... ArrayIndexOutOfBoundsException

This is simple program (or rather group of programs) is solving similar problem. We are going to draw name for a newborn. Data source is based on real data https://dane.gov.pl/dataset/219,imiona-nadawane-dzieciom-w-polsce .images/chooser.png We also present full statistics of most popular names given during first half of 2019. .images/all_names.png And plot a graph for names based on historical data. .images/graph.png

Code

Core

Code: child-core

This module contains no Spring dependencies. Just pure Java + library to read csv files.

What is best approach to test Spring projects?

Test them like there was no Spring at all. (:heart:)

Marcin Grzejszczak - Principal Software Engineer at Pivotal


Spring MVC

Code: child-webapp

  1. Draw a random name โœ…
  2. Present all names split by gender โœ…
  3. Draw a random name, taking parents preferences to gender and popularity โœ…
  4. Allow to choose name from existing data - should increase occurrence counter โœ…
  5. Allow to choose new name - should add new name with counter=1 โœ…
  6. Show details of certain name using path variable โœ…

Spring REST API

Module: child-api

  1. Serve all name stats โœ…
  2. Serve random name stats โœ…
  3. Serve certain name stats โœ…
  4. Serve history of given name โœ…
  5. Allow to insert existing name - should increase counter โœ…
  6. Allow to insert new name - should add new name with counter=1 โœ…

Spring REST API Client

Module: child-client

  1. Consume all name stats โœ…
  2. Consume random name stats โœ…
  3. Consume certain name stats โœ…
  4. Consume history of given name and plot a graph โœ…
  5. Allow to insert existing name using API - should increase counter โœ…
  6. Allow to insert new name using API - should add new name with counter=1 โœ…

s02e03's People

Contributors

tomaszowczarek-tomtom avatar towczare avatar

Watchers

 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.