-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
39 lines (31 loc) · 2.22 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
=======================================================
= GETTING STARTED =====================================
=======================================================
1. Launch local server > script/server
2. In your browser, go to http://localhost:3000?course_id=1 (landing page for given course id)
3. In your browser go to http://localhost:3000/booking?course_id=2 (booking page)
3. Open mobile_controller.rb (Controller and views associated with booking tee time experience)
4. Open mobile.rb module (Important initialization code is here)
4. Visit m.playdeepcliff.com/booking to access production environment
=======================================================
= BOOK A TEE TIME =====================================
=======================================================
MOBILE WEB:
SMS BOOKING:
=======================================================
= GOOGLE APP ENGINE CODE ==============================
=======================================================
# Very critical cron job running on Google App Engine (Heroku does not support crons every minute)
# Every minute, this cron called an endpoint in this code base which fetches available tee time data from Deep Cliff Golf Course
# The cron hits the following URL -> http://www.presstee.com/server_communication/update_courses (passes in course id)
# Code running on App Engine is in Python, main files are main.py, dc.py, and cron.yaml
# class Pinger(IHandler): is the class method that pings the URL every minute
# For more details, visit Google App Engine Wiki
=======================================================
= MOBILE URL REDIRECTS ================================
=======================================================
# Deep Cliff Golf course has included some of it own mobile detection JS code and routed users to m.playdeepcliff.com
# Mobile detection code found here: http://www.playdeepcliff.com/includes/mobile_detection.js
# Mobile detection code is not detecting iPad, so iframe code needs to handle this use case
# iframe code detects the device and routes user accordingly to the correct URL
# iFrame snippet provided to golf course: <iframe style='width:0px;height:0px;border:0px;display:none' src="http://www.presstee.com/mobile/iframe?course_id=2"></iframe>