It's a simple location based hotel search and creates fake check-ins.
It used google search API to get the hotels based on the location.
It has a cron job which exports a CSV file and imports checked-in data for previous day.
Pull the repository
> bundle install
> rake db:create
> rake db:migrate
> rake db:seed
Please put your own GOOGLE_LOCATION_SEARCH_API_URL and GOOGLE_LOCATION_SEARCH_API_KEY in .env
file of root folder.
Start the server and hit localhost:3000
> whenever
> whenever --update-crontab
<app_domain>/checkins
will list all hotel checkins<app_domain>/checkins?arrival_date=<Date>
will list all hotel checkins made on the arrival date<app_domain>/checkins?city_name=<city_name>
will list all hotel checkins made in the city<app_domain>/<user_id>/checkins
will list all user's hotel checkins