GithubHelp home page GithubHelp logo

place_finder's Introduction

place_finder

Technology stack

  • Java8
  • SpringBoot
  • Maven

Architecture

  • The service is a RESTFUL stateless service and can be used in a distributed architecture such as micro service.

building the app

  • run mvn clean install -U command

running the app

  • Application is the main entry point which can be run from your favourite IDE, once it starts use a REST client e.g. IDE or Postman

endpoint

URL: /places/{placeId} e.g. http://localhost:8080/places/london method: GET

Response:

 {
     "place": "london",
     "venues": [
         {
             "id": "4cb1d0e2562d224bfdb42188",
             "name": "\"A Conversation With Oscar Wilde\" statue",
             "verified": false,
             "contact": {
                 "phone": "",
                 "twitter": "",
                 "facebook": ""
             },
             "location": {
                 "address": "Adelaide St.",
                 "postalCode": "WC2 N 5",
                 "countryCode": "GB",
                 "city": "London",
                 "state": "Greater London",
                 "crossStreet": "Btw King William IV & Duncannon"
             },
             "categories": [
                 {
                     "id": "507c8c4091d498d9fc8c67a9",
                     "name": "Public Art",
                     "pluralName": "Public Art"
                 }
             ]
         },
         {
             "id": "52c57cc911d2dba4b2352f65",
             "name": "Paul French Patisserie",
             "verified": false,
             "contact": {
                 "phone": "",
                 "twitter": "",
                 "facebook": ""
             },
             "location": {
                 "address": "Covent Garden",
                 "postalCode": "",
                 "countryCode": "GB",
                 "city": "",
                 "state": "",
                 "crossStreet": ""
             },
             "categories": [
                 {
                     "id": "4bf58dd8d48988d10c941735",
                     "name": "French Restaurant",
                     "pluralName": "French Restaurants"
                 }
             ]
         }
             ]
         }
     ]
 }

Notes:

  • error handing needs to be more specific by catching more specific exceptions
  • an alternative service can be called or some data can be retrieved from DB in case the venue finder service is down Hystrix (wrap the call in a command and FallBack implementation to call alternative service)
  • a health check endpoint should be exposed so that it can be queried by other services and during deployment pipeline smoke testing
  • more test coverage is needed namely an integration test with various non-happy path scenarios (cucumber)
  • end to end test suite should also be added e.g. Selenium, serenity or just testing with REST calls

place_finder's People

Contributors

rrizouk 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.