-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall-an-offline-demo.html
274 lines (267 loc) · 14.5 KB
/
install-an-offline-demo.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE HTML>
<html>
<head>
<title>Install an offline demo | diyActive</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Instructions to install and operate the reelyActive open source platform for offline demos and presentations.">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style/main.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.2/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.min.js"></script>
<script type="text/javascript" src="js/diyactive.js"></script>
</head>
<body ng-app="diyActive">
<div ng-controller="InteractionCtrl">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle"
ng-init="navCollapsed = true"
ng-click="navCollapsed = !navCollapsed">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://www.reelyactive.com">
<strong>reely</strong>Active
</a>
</div>
<div class="collapse navbar-collapse" ng-class="!navCollapsed && 'in'"
ng-click="navCollapsed = true">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="/"> diyActive </a></li>
<li class="dropdown" uib-dropdown on-toggle="toggled(open)">
<a href class="dropdown-toggle" uib-dropdown-toggle role="button"
data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Quick links <span class="caret"></span>
</a>
<ul class="dropdown-menu" uib-dropdown-menu role="menu">
<li role="menuitem">
<a href="https://github.com/reelyactive/" target="_blank">
reelyActive on GitHub
</a>
</li>
<li role="menuitem">
<a href="https://www.npmjs.com/~reelyactive" target="_blank">
reelyActive on npmjs
</a>
</li>
<li role="separator" class="divider"></li>
<li role="menuitem">
<a href="https://www.reelyactive.com" target="_blank">
reelyActive website
</a>
</li>
<li role="menuitem">
<a href="https://getpareto.com" target="_blank">
Pareto by reelyActive
</a>
</li>
<li role="separator" class="divider"></li>
<li role="menuitem">
<a href="https://shop.reelyactive.com" target="_blank">
Our online store
</a>
</li>
<li role="menuitem">
<a href="https://reelyactive.com/blog/" target="_blank">
Our blog
</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-xs-0 col-sm-1 col-md-2 col-lg-3"></div>
<div class="col-xs-12 col-sm-10 col-md-8 col-lg-6">
<h1>
Install an offline demo <br>
<small> Enjoy our full open source platform without Internet connectivity </small>
</h1>
<div uib-carousel interval="4000">
<div uib-slide index="0">
<img ng-src="images/meme-offline-conference.jpg"
class="img-responsive">
</div>
<div uib-slide index="1">
<img ng-src="images/meme-offline-flight.jpg"
class="img-responsive">
</div>
<div uib-slide index="2">
<img ng-src="images/meme-offline-outdoors.jpg"
class="img-responsive">
</div>
</div>
<h2> Install Node.js </h2>
<p> Do you have <b>Node.js</b> installed? </p>
<a ng-class="node === true ? 'btn btn-warning' : 'btn btn-default'"
ng-click="node = true"> Yes </a>
<a ng-class="node === false ? 'btn btn-warning' : 'btn btn-default'"
ng-click="node = false"> No </a>
<a class="btn btn-default" ng-click="node = null"> Unsure </a>
<!----- Node.js installed ----->
<div ng-show="node === true">
<h3> You're all set! </h3>
<p> Proceed to install the code </p>
</div>
<!----- Install Node.js ----->
<div ng-show="node === false">
<h3> Install Node.js <br>
<small> Installation is easy on all platforms </small> </h3>
<p> Click the button below to access the Node.js downloads page and then select the LTS version (recommended). </p>
<p class="text-center">
<a class="btn btn-primary" href="https://nodejs.org"
target="_blank" role="button"> Install Node.js </a>
</p>
</div>
<!----- Test for Node.js ----->
<div ng-show="node === null">
<h3> Verify if you have Node.js installed </h3>
<p> Open a terminal or command prompt, type <code>node --version</code> and press Enter. </p>
<img src="images/node-version.gif"
class="img-responsive center-block"><br>
<p> If the output is something like <b>vx.x.x</b>, you do indeed have Node.js installed and can click <a ng-click="node = true"><i>Yes</i></a> above. Otherwise click <a ng-click="node = false"><i>No</i></a> above. </p>
</div>
<h2> Install the code </h2>
<p> Do you have <b>git</b> installed? </p>
<a ng-class="git === true ? 'btn btn-warning' : 'btn btn-default'"
ng-click="git = true"> Yes </a>
<a ng-class="git === false ? 'btn btn-warning' : 'btn btn-default'"
ng-click="git = false"> No </a>
<a class="btn btn-default" ng-click="git = null">Unsure</a>
<!----- Instructions with git ----->
<div ng-show="git === true">
<h3> Let's install with git <br>
<small> Should be quick and painless </small> </h3>
<p> From the command line, browse to the folder in which you'd like the code to reside, then run: </p>
<pre>
git clone --recursive https://github.com/reelyactive/offline-platform-demo
cd offline-platform-demo
npm install
</pre>
<p> All the code and dependencies are now installed. </p>
</div>
<!----- Instructions without git ----->
<div ng-show="git === false">
<h3> Let's install the old-fashioned way <br>
<small> A few extra steps, but straightforward nonetheless </small> </h3>
<p> Click the button below to download the master.zip archive from the <a href="https://github.com/reelyactive/offline-platform-demo" target="_blank">offline-platform-demo</a> repository on the reelyActive GitHub. </p>
<p class="text-center">
<a href="https://github.com/reelyactive/offline-platform-demo/archive/master.zip" class="btn btn-primary"> Download master.zip </a>
</p>
<p> Unzip the file to a local folder where you'd like the code to reside. We'll assume the folder name will be <b>offline-platform-demo</b>. </p>
<p> Click the button below to download the gh-pages.zip archive from the <a href="https://github.com/reelyactive/sniffypedia" target="_blank">sniffypedia</a> repository on the reelyActive GitHub. </p>
<p class="text-center">
<a href="https://github.com/reelyactive/sniffypedia/archive/gh-pages.zip" class="btn btn-primary"> Download gh-pages.zip </a>
</p>
<p> Unzip the contents of the archive to the <b>offline-platform-demo/sniffypedia</b> folder. Your folder hierarchy should look like: </p>
<img src="images/offlinePlatformDemo-hierarchy.png"
class="img-responsive center-block"><br>
<p> Open a terminal or command prompt, browse to the <b>offline-platform-demo</b> folder, type <code>npm install</code> and press Enter. </p>
<img src="images/offlinePlatformDemo-npminstall.png"
class="img-responsive center-block"><br>
<p> All the code and dependencies are now installed. </p>
</div>
<!----- Test for git ----->
<div ng-show="git === null">
<h3> Verify if you have git installed </h3>
<p> Open a terminal or command prompt, type <code>git --version</code> and press Enter. </p>
<img src="images/git-version.gif"
class="img-responsive center-block"><br>
<p> If the output is something like <b>git version x.x.x</b>, you do indeed have git installed and can click <a ng-click="git = true"><i>Yes</i></a> above. Otherwise click <a ng-click="git = false"><i>No</i></a> above. </p>
</div>
<h2> Run the demo </h2>
<p> Do you have a starter kit connected to your computer? </p>
<a ng-class="ready === true ? 'btn btn-warning' : 'btn btn-default'"
ng-click="ready = true"> Yes </a>
<a class="btn btn-default" ng-click="ready = null">Unsure</a>
<!----- Ready ----->
<div ng-show="ready === true">
<h3> Let's fire up the server <br>
<small> One final command to go! </small> </h3>
<p> Open a terminal or command prompt, browse to the <b>offline-platform-demo</b> folder, type <code>node server</code> and press Enter. </p>
<img src="images/offlinePlatformDemo-nodeserver.png"
class="img-responsive center-block"><br>
<p> The platform is now running, and the console output will encourage you to browse to <a href="http://localhost:3001" target="_blank">localhost:3001</a> where you can access the demos and APIs through the following interface: </p>
<img src="images/hlcLanding.png"
class="img-responsive center-block"><br>
<p> If you see bubbles in the bubblescape, the installation was successful. The content of the bubbles is being sourced from your local sniffypedia instance! </p>
</div>
<!----- Unsure if ready ----->
<div ng-show="ready === null">
<h3> Connect a starter kit <br>
<small> Be sure to stick it in the right hole! </small> </h3>
<p> Plug the reelceiver into the hub so that the <b>Hub →</b> arrow points towards the hub. Note that the reelceiver will still power on if it's connected in the wrong orientation, but it will <i>not</i> communicate with the hub. Watch the video for details.</p>
<div class="embed-container"><iframe src="https://www.youtube.com/embed/bbwgdcXSs5M?rel=0&controls=0&showinfo=0&modestbranding" frameborder="0" allowfullscreen></iframe></div><br>
</div>
<h2> <del>Hears</del> Here's what you can demo<br>
<small> Access any of these webpages locally — even offline </small> </h2>
<div uib-carousel interval="4000">
<div uib-slide index="0">
<img ng-src="images/piHub-dashboard.png"
class="img-responsive">
<div class="carousel-caption">
<h1> Dashboard </h1>
</div>
</div>
<div uib-slide index="1">
<img ng-src="images/piHub-barterer.png"
class="img-responsive">
<div class="carousel-caption">
<h1> Infrastructure APIs </h1>
</div>
</div>
<div uib-slide index="2">
<img ng-src="images/piHub-chickadee.png"
class="img-responsive">
<div class="carousel-caption">
<h1> Contextual APIs </h1>
</div>
</div>
<div uib-slide index="3">
<img ng-src="images/piHub-bubblescape.jpg"
class="img-responsive">
<div class="carousel-caption">
<h1> The bubblescape </h1>
</div>
</div>
</div>
<p> </p>
<h2> Prefer Software-as-a-Service? </h2>
<img src="images/pareto-by-reelyactive.jpg"
class="img-responsive center-block"><br>
<p> Our Pareto platform combines even more features and functionality with the convenience of SaaS for those times when you <i>are</i> online. </p>
<p class="text-center">
<a class="btn btn-primary" href="https://getpareto.com"
target="_blank" role="button"> Visit getpareto.com </a>
</p>
<hr>
<h2> What's next? </h2>
<p> If the bubblescape, sensorscape and graphical APIs aren't enough for your demo, you can easily build your own custom demo by following our <a href="build-web-apps-with-beaver.html">Build web apps with beaver.js</a> tutorial. </p>
<p class="text-center">
<a class="btn btn-default" href="build-web-apps-with-beaver.html"
role="button"> Build web apps with beaver.js </a>
<a class="btn btn-success" href="/"
role="button"> Return to diyActive </a>
</p>
</div>
<div class="col-xs-0 col-sm-1 col-md-2 col-lg-3"></div>
</div>
</div>
<footer class="footer">
<a href="/"
uib-tooltip="Do-it-yourself with reelyActive"
tooltip-placement="left"> diyActive </a> |
<a href="https://www.reelyactive.com"
uib-tooltip="We believe in an open Internet of Things"
tooltip-placement="right">
© reelyActive 2017-2018
</a>
</footer>
</div>
</body>
</html>