Coder Social home page Coder Social logo

java-gdp's Introduction

Introduction

The top 100 economies in the world are provided in the JSON file. We will be reviewing some of this data and logging when certain data is accessed.

Instructions

Set up an H2 data base to hold the data for countries and their Gross Domestic Products. Use the provided JSON file to upload your data. The data contains two fields

  • The Country Name
  • The GDP in millions

Set up a Rabbit Message Queue to hold logging information

  • Different end points will send messages to the queue
  • Set up a class to consume the logs - this will represent another server that manages logging

Recommended Steps

  1. Create a new project
  2. Add Jackson Dependencies
  3. Build Queue and Exchange
  4. Populate the rest of the Application class
  5. Write the Message Listener (Consumer)
  6. Write Data class
  7. Write Exception class
  8. Write Repository interface
  9. Write Controller class!

Expose the following end points

GET

/names - return using the JSON format all of the countries alphabetized by name

/economy - return using the JSON format all of the countries sorted from most to least GDP

/total - return the sum of all GDPs using the JSON format with country name being returned as Total

/gdp/{country name} - return using the JSON format the record for that country. Must be spelled as in the data!
Log that someone looked up this country

POST

/gdp - loads the data from the provided JSON file

java-gdp's People

Contributors

chancepayne avatar jasoncorp84 avatar johnoro avatar jrmmba8314 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.