Coder Social home page Coder Social logo

vashadow / kayak Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adityaparmar03/kayak

0.0 2.0 0.0 51.88 MB

Kayak is travel search engine which gathers all data from different vendors, process it and display to users. Displayed various analytics graphs like User tracking graph, revenue graph to admin. It is a distributed service oriented application which is implemented through Kafka messaging service to make it more scalable and reliable. Used Redis to cache data.

JavaScript 96.15% HTML 2.67% CSS 1.17%

kayak's Introduction

Kayak

Project Report: https://github.com/adityaparmar03/Kayak/blob/master/Kayak_Project_Report.pdf

Steps for installing the project

Checkout this repo, install dependencies, then start the gulp process with the following:

$ git clone https://github.com/MeenakshiParyani/Kayak.git
$ cd react-front-end
$ npm install
$ npm start
$ cd kafka-front-end
$ npm install
$ npm start
$ cd kafka-back-end
$ npm install
$ npm start
$ Access the Kayak Portal on http://localhost:3000

Redis Server config

MAC OS Steps

# Install the Redis Server
$ brew install redis
# Start the Redis Server
$ redis-server       

Linux OS Steps

# Install the Redis Server
$ wget http://download.redis.io/redis-stable.tar.gz
$ tar xvzf redis-stable.tar.gz
$ cd redis-stable
# Start the Redis Server
$ redis-server
$ make

Redis CLI Verification

# Start the Redis CLI
$ redis-cli
# To see the redis cached key and value pair
$ KEYS *

To enable caching on any query, the query should be in following format

query = User.find({});
query.where("id", req.session.userId);
query.lean() # Lean is what instructs Redis to cache the query results
query.exec(function(err, userInfo){
    // Process the Query Results
});

List of Kafka Topics to be created

login getapi MmtCars CleartripCars AlamoCars MmtHotels CleartripHotels TripAdvisorHotels MmtFlights CleartripFlights ExpediaFlights BookFlight BookHotel BookCar

Use below command to create all the required Topics

kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 -topic <<topic_name>>

Verify Topic Creation

kafka-topics --list --zookeeper localhost:2181

kayak's People

Contributors

adityaparmar03 avatar kimtani90 avatar meenakshiparyani avatar siddharthsuthar avatar codercouple avatar

Watchers

James Cloos avatar Leroy Baynum 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.