Skip to content

nerdijoe/kayak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kayak 🚣‍

How to run the application 🏃‍

1. Start Kafka Broker

// on your terminal, go to your respective kafka folder
$ cd kafka_2.11-0.11.0.1


// start zookeper
$ bin/zookeeper-server-start.sh config/zookeeper.properties


// start kafka server
$ bin/kafka-server-start.sh config/server.properties


// create 2 topics
// request_topic and response_topic
$ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic request_topic
$ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic response_topic


// see the topics that has been created
$ bin/kafka-topics.sh --list --zookeeper localhost:2181

2. Start Redis Server

// download redis package and install
$ wget http://download.redis.io/releases/redis-4.0.4.tar.gz
$ tar xzf redis-4.0.4.tar.gz
$ cd redis-4.0.4
$ make
 run Redis server
//
$ ./src/redis-server

How to deploy

Server Express.js

// git clone the project
$ cd server
$ npm install

// migrate MySQL database
$ sequelize db:migrate

$ npm start

Kayak Client React.js

$ cd kayak-client
$ npm install
$ npm start

Admin Client React.js

Use admin-client-v2, this admin client is running on localhost:3009

$ cd admin-client-v2
$ npm install
$ npm start

Kafka Back End

$ cd kafka-back-end
$ npm install
$ npm start
copy the .env key values from Trello on Reference List

Database information

MySQL

All of the 10,000 user listing

MongoDB

All of the listing of flights, hotels, cars, billing, logging, are in the cloud

Here is the cluster address of the Mongo Atlas Database

mongodb://${username}:${password}@cluster0-shard-00-00-i5u9w.mongodb.net:27017,cluster0-shard-00-01-i5u9w.mongodb.net:27017,cluster0-shard-00-02-i5u9w.mongodb.net:27017/kayak_dev?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages