Skip to content

Repository files navigation

Hotel Reservation

The application implements a hotel reservation service, build with Go and aRPC, and starting from the open-source project https://github.com/harlow/go-micro-services. The initial project is extended in several ways, including adding back-end in-memory and persistent databases, adding a recommender system for obtaining hotel recommendations, and adding the functionality to place a hotel reservation.

Supported actions:

  • Get profile and rates of nearby hotels available during given time periods
  • Recommend hotels based on user provided metrics
  • Place reservations

Build Kubernetes images

git clone https://github.com/appnet-org/go-lib.git
bash kubernetes/scripts/build-docker-images.sh

Run Application

kubectl apply -f hotel_reservation.yaml

Test Application

curl "http://10.96.88.88:5000/recommendations?require=rate&lat=38.0235&lon=-122.095"
curl "http://10.96.88.88:5000/hotels?inDate=2015-04-10&outDate=2015-04-11&lat=38.0235&lon=-122.095"
curl "http://10.96.88.88:5000/user?username=Cornell_15&password=123654"
curl "http://10.96.88.88:5000/reservation?inDate=2015-04-19&outDate=2015-04-24&lat=nil&lon=nil&hotelId=9&customerName=Cornell_1&username=Cornell_1&password=1111111111&number=1"

Delete Application

kubectl delete all,sa,pvc,pv,envoyfilters --all

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages