-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (168 loc) · 7.62 KB
/
index.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>uchews homepage</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'>
<!-- Custom styles for this template -->
<link href="css/grayscale.min.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="https://frozen-beach-49440.herokuapp.com/">Visit uchews</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fa fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#download">Getting Started</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Intro Header -->
<header class="masthead">
<div class="intro-body">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h1 class="brand-heading">uchews</h1>
<p class="intro-text">The deciding factor in a common problem: indecision when choosing a restaurant.</p>
<a href="#about" class="btn btn-circle js-scroll-trigger">
<i class="fa fa-angle-double-down animated"></i>
</a>
</div>
</div>
</div>
</div>
</header>
<!-- About Section -->
<section id="about" class="content-section text-center">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2>About uchews</h2>
<p>No more hours wasted deciding on where to eat! Let uChews decide for you based on your groups preferences. Get an expertly algorithmically narrowed down select of top restaurants in your area and price range. Utlizes Google Places API and algorithms to deliver choices for your group to make, leading to a top 3 list of restaurants.</p>
</div>
</div>
</div>
</section>
<!-- Download Section -->
<section id="download" class="download-section content-section">
<div class="container">
<div class="col-lg-8 mx-auto">
<h2>Getting started from the repo</h2>
<h4>Cloud Database Setup</h4>
<ul>
<li>setup an account at mlab.com</li>
<li>in your dashboard, click creat new under MongoDB Deployments</li>
<li>select amazon as your cloud provider and select sandbox as your plan type</li>
<li>select US as your AWS region</li>
<li>name your database, and submit your order</li>
<li>in your dashboard, selet your newly created database</li>
<li>click on users and add a user</li>
<li>inside your .env file add:<br />
DB_USER=[username]<br />
DB_PASS=[password]</li>
</ul>
<h4>API key setup</h4>
<ul>
<li>create a Google API key</li>
<li>enable Google Places API Web Service</li>
<li>enable Google Maps Geocoding API</li>
<li>enable Google Maps JavaScript API</li>
<li>inside Credentials, select the api key</li>
<li>select HTTP referrers (web sites) under Application Restrictions</li>
<li>add the following urls to Accept requests from these HTTP referrers (web sites) (Optional):<br />
*127.0.0.1:1337<br />
*frozen-beach-49440.herokuapp.com*</li>
<li>inside of your .env file add: <br />
GOOGLE_API_KEY=[api key]</li>
<li>inside of map.jsx insert your API key as a string on line 86</li>
</ul>
<h4>OAuth 2.0 client ID</h4>
<p>This is necessary to enable Google sign-in</p>
<ul>
<li>create a client ID from console.developers.google.com for OAuth 2.0 client IDs <br />
https://developers.google.com/identity/sign-in/web/devconsole-project is a helpful tutorial</li>
<li>set the GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and LOCAL_GOOGLE_REDIRECT variables in your .env file <br />
these three variables are all accessed in server/index.js when the GoogleStrategy is defined for passport</li>
<li>pay attention to step 5 in the tutorial above: you must authorize separate redirect urls for testing on your local machine and the deployed website</li>
</ul>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="content-section text-center">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2>Creator Github Accounts</h2>
<ul class="list-inline banner-social-buttons">
<li class="list-inline-item">
<p>Ray Huynh
<a href="https://github.com/huynhr">huynhr</a>
</p>
</li>
<li class="list-inline-item">
<p>Katelyn Stamas
<a href="https://github.com/cakelyn">cakelyn</a>
</p>
</li>
<li class="list-inline-item">
<p>Brian Binder
<a href="https://github.com/pray4mojo">pray4mojo</a>
</p>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Map Section -->
<!-- <div id="map"></div> -->
<!-- Footer -->
<footer>
<div class="container text-center">
<p>Copyright © Your Website 2017</p>
</div>
</footer>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Google Maps API Key - Use your own API key to enable the map feature. More information on the Google Maps API can be found at https://developers.google.com/maps/ -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCRngKslUGJTlibkQ3FkfTxj3Xss1UlZDA&sensor=false"></script>
<!-- Custom scripts for this template -->
<script src="js/grayscale.min.js"></script>
<script>
$('body').append(
'<a href="http://hackreactor.com"> \
<img style="position: fixed; top: 0; right: 0; border: 0;" \
src="http://i.imgur.com/x86kKmF.png" \
alt="Built at Hack Reactor"> \
</a>'
);
</script>
</body>
</html>