forked from heroku/node-js-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
418 lines (389 loc) · 13.7 KB
/
index.html
File metadata and controls
418 lines (389 loc) · 13.7 KB
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
spect.io
</title>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fsocial-buttons.css">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<script src="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fjquery.js"></script>
<script src="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fbootstrap.js"></script>
<link href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,600italic,700italic,300,400,600,700,800" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,300,400,600,700,800" rel="stylesheet" type="text/css">
<style type="text/css">
@media (min-width: 980px) {
body {
padding-top: 60px;
}
.linediv-l {
border-right: 1px #343434 solid;
}
.linediv-r {
border-left: 1px #343434 solid;
}
}
@media (max-width: 480px) {
.copy {
padding: 2.5% 10%;
}
.linediv-l {
border-bottom: 1px #343434 solid;
}
.linediv-r {
border-top: 1px #343434 solid;
}
.social .btn-twitter {
margin-bottom: 2%;
}
.social .btn-facebook {
margin-bottom: 2%;
}
}
/* Main body and headings */
body {
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
background-color: #eee3c1;
}
.heading, .subheading {
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
text-align: center;
}
p.lead {
padding-top: 1.5%;
font-sze: 24px;
line-height: 30px;
}
p {
font-size: 18px;
line-height: 24px;
color: #000000 !important;
}
.pitch {
padding: 2.5% 0%;
}
.order {
padding: 2% 0%;
}
.actions {
padding 3% 0%;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius:4px;
}
.video, .thermometer, .order, .social, .statistics {
text-align: center;
}
.social {
padding-bottom: 4%;
}
.statistics h3, .statistics p {
color: #000000;
}
.thermometer {
width: 95%;
margin: 0 auto;
}
.copy {
padding-top: 2.5%;
padding-bottom: 2.5%;
text-align: justify;
}
.asset {
padding: 2.5% 0%;
}
.footer {
color: #cccccc;
text-align: center;
}
.footer p {
font-size: 11px;
}
.footer a {
color: #005580;
}
.caption {
text-align: center;
color: #000000;
font-size: 0.9em;
}
.code {
background-color: #2E3436 !important;
color: #ffffff !important;
font-size: 1em !important;
}
.centeredImage {
display: block;
margin-left: auto;
margin-right: auto;
}
.centeredDiv {
float:none !important;
margin: 0 auto !important;
}
h3 {
color: #000000 !important
}
h1 {
color: #000000 !important
}
.accordion-group {
border-color: #000000 !important;
border-width: 0px !important
}
/* http://support.addthis.com/customer/portal/questions/1136093-share-buttons-in-center-position */
div.addthis_toolbox {
width:180px;
margin: 0 auto;
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-43045507-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">spect.io</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!-- row-fluid used inside of containers (http://stackoverflow.com/a/12270322) -->
<div class="container">
<!-- Font and paired font of .heading/.subheading and body from Google Fonts -->
<!-- www.google.com/fonts/specimen/Ubuntu -->
<!-- www.google.com/fonts/specimen/Ubentu#pairings -->
<div class="row-fluid heading">
<div class="span12">
<h1>spect.io</h1>
</div>
</div>
<div class="row-fluid subheading">
<div class="span12">
<!-- Special typography from Bootstrap for lead paragraph. -->
<!-- http://twitter.github.io/bootstrap/base-css.html#typography -->
<p class="lead">API prototyping, consistency checking, and corner-case testing. Always free.</p>
</div>
</div>
<div class="row-fluid pitch">
<!--div class="span5 offset1 video">
<img class="img-polaroid centeredImage" src="http://placehold.it/480x300">
</div-->
<!-- 'actions' div contains statistics, order, and share buttons. -->
<div class="span12 actions">
<div class="span8 offset2">
<div class="statistics">
<div class="span4">
<div class="linediv-l">
<h3>0</h3> <p>backers</p>
</div>
</div>
<div class="span4">
<div class="linediv-c">
<h3>0</h3> <p>of 2 BTC raised</p>
</div>
</div>
<div class="span4">
<div class="linediv-r">
<h3>30</h3> <p>days left</p>
</div>
</div>
</div>
</div>
<div class="span10 offset1">
<!-- Bootstrap progress bar -->
<div class="thermometer progress active">
<div class="bar bar-success" style="width: 0%"></div>
<div class="bar bar-warning" style="width: 100%"></div>
</div>
</div>
<div class="span6 offset3 order">
<!--button class="btn btn-success btn-large">Preorder</button-->
<a class="coinbase-button" data-code="764cda9ea9ae6b6b9eb9e85a995bd109" data-button-style="custom_large" href="https://coinbase.com/checkouts/764cda9ea9ae6b6b9eb9e85a995bd109">Donate Bitcoins</a><script src="https://coinbase.com/assets/button.js" type="text/javascript"></script>
</div>
<div class="span8 offset2 social">
<!--button class="btn btn-twitter"><i class="icon-twitter"></i> | Twitter</button>
<button class="btn btn-facebook"><i class="icon-facebook"></i> | Facebook</button-->
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5202b8d465e51f8a"></script>
<!-- AddThis Button END -->
</div>
</div>
</div>
<div class="row-fluid section1">
<div class="span5 offset1 asset">
<p><pre class="code">
[
{
name: 'clientGetUID',
url: 'https://mysite.com/connect',
method: 'POST',
data: {
your:'data',
goes:'here'
}
},
{
name: 'clientSendMsg',
url: 'https://mysite.com/send',
method: 'POST',
depends: 'clientGetUID',
data: {
uid: [[clientGetUID.response.session_id]],
msg: 'Keep it simple, stupid!'
}
}
]
</pre></p>
<p class="caption">Example of endpoint testing</p>
</div>
<div class="span5 copy">
<p>
<b>Your API shouldn't be a second-class citizen</b>
<br>
An API is often the driving force behind product growth. Without developers, there are no users. Still, with the surge of agile projects being developed in the wake of rapidly evolving technologies, the necessity for a small team to deliver a deprecation-free API becomes just another trivial burden standing in the way of completion.
<br><br>
<b>Why Spect?</b>
<br>
Developing a clean, consistent API is more difficult than it should be. It's common to see projects rethinking their specifications mid-way through execution, only to find that a re-write, while time consuming, is inevitable. APISpect takes a different approach by cutting out the time cost of developing and testing an API, allowing developers to spend more of their time making beautiful products.
</p>
</div>
</div>
<div class="row-fluid section2">
<div class="span5 offset1 copy copy-right">
<p>
<b>Prototype</b>
<br>
Get your app's client connected in 3 simple steps:
<br><br>
• Name your endpoints -- choose as many as you'd like
<br>
• Define the data for each endpoint using JSON -- be as specific as you'd like. Tap into the power of the Spect JSON commands to add dynamic responses, request-body tests, conditional notifications, and much, much more.
<br>
• Connect -- Upon setting up your mock API, you'll receive a link to it along with an editing panel, which will remain available until you remove it, or 30 days of inactivity have passed.
<br><br>
<b>Test</b>
<br>
Once your real API is finished, test it using JSON.
<br><br>
• Use PASS/FAIL units to ensure internal server changes don't break API specifications.
<br>
• Chain requests using dynamic response data to test complex server interactions at an insane scale.
<br>
• Schedule recurring, automatic tests to ensure the project is always moving in the same direction.
</p>
</div>
<div class="span5 asset">
<img class="img-polaroid centeredImage" src="http://i.imgur.com/xqqLBvZ.png" alt="Don't sweat presentation if functionality is make or break!">
</div>
</div>
<div class="row-fluid section3">
<div class="span5 offset1 asset">
<img class="centeredImage" src="https://github.global.ssl.fastly.net/images/modules/logos_page/Octocat.png" style="margin-bottom: 5px" alt="Github octocat">
<img class="centeredImage" src="http://nodejs.org/images/logos/nodejs.png" alt="NodeJS logo">
</div>
<div class="span5 copy">
<p>
<b>Open source</b>
<br>
Fork and modify code as necessary to comply with your project's rigorous needs.
<br><br>
<b>Built for Node</b>
<br>
While only JSON is necessary to use Spect, JS-junkies can easily tweak the tools to their liking.
<br><br>
<b>Choose the tool for the job</b>
<br>
Get up and running quickly using the Spect web interface, or integrate Spect into your workflow using our command-line tools and API.
<br><br>
<b>Other features</b>
<br>
• Reports via email.
<br>
• Corner-case testing - Harden your server code with a healthy dose of bad data.
<br>
• Complex tests and prototypes within minutes.
<br>
• More features upon developer request!
</p>
</div>
</div>
<div "row-fluid faq">
<div class="span10 offset1">
<h3>FAQ</h3>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
What does FAQ stand for?
</a>
</div>
<div id="collapseOne" class="accordion-body collapse">
<div class="accordion-inner">
Frequently Asked Question.
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
What's a Frequently Asked Question?
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
A question which is commonly asked by users.
</div>
</div>
</div>
</div>
</div>
</div>
<!-- CC By-SA 3.0 license -->
<div class="row-fluid footer">
<div class="span12">
<p>This work is licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC By-SA</a>, without all the cruft that would otherwise be at the bottom of the page.</p>
</div>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43045507-1', 'herokuapp.com');
ga('send', 'pageview');
</script>
</body>
</html>