GithubHelp home page GithubHelp logo

tripadvisor's Introduction

tripadvisor

Steps to execute the trip advisor API

Create Database

1. Open MS Sql Server and create a database with the name "TripAdvisor"
2. Open "SQLQuery_Create_Tables.sql" in MS Sql Server. Which is available in "tripadvisor/SqlQueries/" folder of this repository. 
3. Execute the query in the "SQLQuery_Create_Tables.sql" or press F5 in MS Sql Server.
4. Now a table ("DistrictTemperatures") is created in "TripAdvisor" database in your MS Sql Server.

Execute the "TripAdvisor.API.exe"

1. Download the "tripvisitor.api.zip" file from this repository, which is available in "tripadvisor/tripadvisor.api.release/" folder of this repository.
2. Unzip the folder in your computer's prefered location.
3. Open appsettings.json file, nd update "YOUR_SERVER_ADDRESS", "YOUR_USERNAME", "YOUR_PWSSEORD" strings in "ConnectionStrings.DefaultConnection" section, with your Ms Sql Server values.
4. Double click on "TripAdvisor.API.exe"
5. Now go to your favorite browser, and type or paste the url "http://localhost:5000/swagger/index.html"
6. A swagger page will be loaded with three api

Fetch data using the API's

1. Load/Fetch district temperature data using "api/district/fetch-temperature-data", this api will take some time to fetch data.
    - If fetching data is successfull, you will see message like following 
        Data = "Data fetched successfully"
2. If step 1 skipped, then the "/api/district/coolest10" and "api/trip/suggest" API will not work.
3. Find the 10 coolest districts using "/api/district/coolest10" api.
4. Get a trip suggestion using "api/trip/suggest" api.
    - Api Parameters 
      i.   StartingLocation -> a valid district name.
      ii.  Destination -> a valid district name.
      iii. TravelDate -> Desired travel date.  

tripadvisor's People

Contributors

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