Coder Social home page Coder Social logo

javapathenproject8's Introduction

TourGuide-APP

TourGuide main application

Start application

  • copy/clone this project.
  • cd PATH/TO/PROJECT/ROOT/TourGuide where build.gradle is present
  • run: ./gradlew bootJar
  • clone and build reward-service , location-service , user-service
  • run: docker-compose -f docker-compose.yml up --build
  • Access endpoints on localhost:8084/

Test

  • run: ./gradlew test integrationTest
    • result:
      • UT: TourGuide/build/reports/tests/test/index.html
      • IT: TourGuide/build/reports/tests/integrationTest/index.html
    • coverage:
      • UT: TourGuide/build/jacocoUTHtml/index.html
      • IT: TourGuide/build/jacocoITHtml/index.html
    • Note: test presents in integrationTest.old are disabled, they need microservices to work(run with docker-compose-test up, like in performanceTest)
  • performance test:
    • run: docker-compose -f docker-compose-test.yml up --build
    • run: ./gradlew performanceTest

Technical:

  1. Java : 17
  2. Gradle 7+
  3. SpringBoot : 2.6.6
  4. Docker
  5. Docker-compose

EndPoints

  • GET: "/"
    • parameter: no_parameter
    • return: homepage
  • GET: "/getLocation"
    • parameter: userName
    • return: Location
  • GET: "/getNearbyAttractions"
    • parameter: userName
    • return: Map of Location : Collection
  • GET: "/getAllCurrentLocations"
    • parameter: no_parameter
    • return: Map of UserId : Location
  • GET: "/getRewards"
    • parameter: userName
    • return: Collection of UserReward
  • GET: "/getTripDeals"
    • parameter1: userName
    • parameter2: attractionId
    • return: Collection of Provider
  • POST: "/addUserPreferences"
    • body: userPreferences
    • return: Map of UserId : Location

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.