-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
575 lines (527 loc) · 22.5 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
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
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Angel - Dart on the Server</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121584030-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-121584030-1');
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Angel is a polished, production-ready backend framework in Dart, supporting GraphQL, MVC, WebSockets, ORM, MongoDB, and much, much more.">
<meta name="keywords" content="Dart,framework,server,server-side,angel,angel-framework,framework,jaguar,aqueduct,google,express,routing,web,webdev,developer">
<link rel="shortcut icon" href="assets/images/favicon.png" type="image/png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/atom-one-dark.min.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<script src="//twemoji.maxcdn.com/2/twemoji.min.js?11.4"></script>
<style>
body {
position: relative;
}
.hero-head nav {
background: #fff !important;
box-shadowa: 0px 5px 5px rgba(0, 0, 0, 0.05);
}
.hero {
background: #f1f1f1;
background: #fff;
}
.section.code {
background: #1f1f1f;
color: #fff;
}
.section.primary {
background: #d81c1c;
background: #f1f1f1;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.9);
position: relative;
}
.primarya.section .title,
.primarya.section .subtitle,
.section.code .title,
.section.code .subtitle {
color: #fff;
}
.footer {
background: #121212;
color: #f1f1f1;
}
.footer .subtitle {
font-size: 1em;
}
.emoji img {
height: 0.8em;
margin-left: 3px;
margin-top: 0.3em;
margin-top: -3px;
vertical-align: middle;
}
.level-item .title {
color: #f1f1f1;
}
#slider {
position: relative;
text-align: center;
}
#slider.has-image code {
background-image: url('assets/images/hot_reload.png');
background-size: cover;
color: transparent;
}
#slider.has-image code span {
opacity: 0;
}
#slider img,
#slider pre {
text-align: left;
}
.fa-circle,
.fa-circle-thin {
border-radius: 50%;
box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.5);
cursor: pointer;
margin: auto;
}
pre {
background: transparent;
margin: 0;
padding: 0;
}
img.screenshot {
box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.5);
}
code.hljs {
font-family: Consolas, "Liberation Mono", Menlo, Monaco, Lucida Console,
Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono,
Courier New, monospace, serif;
line-height: 1.3em;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 5px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
overflow-x: auto;
padding: 0 1em;
-webkit-font-smoothing: subpixel-antialiased;
}
.section .button {
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
}
.hljs-keyword {
font-weight: normal;
}
.column.text {
padding-top: 2em;
}
.column.text .title {
padding-bottom: 0.5em;
}
.readme {
background: #f1f1f1;
color: #6a6a6a;
font-size: 0.8em;
padding: 5px;
}
.is-angel {
border-color: #d81c1c;
color: #d81c1c;
}
.is-gitter {
background: #ed1965 !important;
}
@media(max-width: 768px) {
.readme span {
display: none;
}
}
</style>
</head>
<body>
<section class="readme">
<div class="container has-text-centered">
<p>
Angel 2 is out now!
<span>Brings Dart 2 support, GraphQL support, and more.</span>
<a href="https://thosakwe.com/new-features-coming-to-angel-in-version-2-0-0/" target="_blank">
Read more
</a>.
</p>
<!--<p>Angel 2 is out now!
<span>Introducing Dart 2 support, performance improvements, GraphQL, and more.</span>
</p>-->
</div>
</section>
<section class="hero">
<div class="hero-head" style="padding-bottom: 1em">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false"
data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="https://docs.angel-dart.dev/v/2.x" target="_blank">
Docs
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/examples-v2">
Examples
</a>
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link" target="_blank">
<span class="emoji" data-emoji="🌎"></span>
Ecosystem
</div>
<div class="navbar-dropdown">
<a class="navbar-item" target="_blank"
href="https://github.com/angel-dart/awesome-angel">
Awesome Angel
</a>
<a class="navbar-item" target="_blank"
href="https://github.com/angel-dart/awesome-angel#companies-using-angel-in-production">
Who's Using Angel
</a>
<hr class="navbar-divider" />
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/graphql">
GraphQL support
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/jael">
Jael templating engine
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/client">
Client-side support
</a>
<a class="navbar-item" target="_blank"
href="https://github.com/angel-dart/configuration">
App configuration
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/auth">
Authentication
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/validate">
Validation
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/orm">
PostgreSQL ORM
</a>
<a class="navbar-item" target="_blank" href="https://github.com/angel-dart/mongo">
MongoDB support
</a>
<hr class="navbar-divider" />
<a class="navbar-item" target="_blank"
href="https://pub.dartlang.org/packages?q=angel&api=0">
Full list of packages...
</a>
</div>
</div>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="button is-black" href="https://github.com/angel-dart/angel" target="_blank">
<span class="icon is-small">
<i class="fab fa-github"></i>
</span>
<span>Fork</span>
</a>
<a class="button is-dark is-gitter" href="https://gitter.im/angel_dart/discussion"
target="_blank">
<span class="icon is-small">
<i class="fab fa-gitter"></i>
</span>
<span>Chat</sp>
</a>
<a class="button is-light" href="https://forum.angel-dart.dev"
target="_blank">
<span class="icon is-small">
<i class="far fa-comment-dots"></i>
</span>
<span>Forum</sp>
</a>
</div>
</div>
</div>
</div>
</nav>
</div>
<div class="hero-body has-text-centered">
<div class="container">
<div class="title" style="margin-bottom: 0">
<img src="assets/images/logo.png" style="max-height: 3em" alt="Angel" />
</div>
<div class="subtitle" style="margin: auto; max-width: 30em">
A polished, production-ready backend framework in Dart.
</div>
<br>
<a class="button is-light" style="border: 1px solid #dbdbdb"
href="https://docs.angel-dart.dev/v/2.x/guides/getting-started" target="_blank">
Get Started
</a>
<a class="button" href="https://www.youtube.com/playlist?list=PLl3P3tmiT-fqGCB2vSPq8HhpugEDNWUo6"
target="_blank">
<span class="icon is-small">
<i class="fab fa-youtube"></i>
</span>
<span>Video Tutorials</span>
</a>
<br><br>
<span style="font-size:0.8em; font-weight: 900; text-transform: uppercase;">Install it right
away:</span>
<pre style="margin-bottom: -3em">
<code class="bash" style="text-align: left; width: fit-content; margin: auto;">
# Install the Angel CLI, and scaffold a project.
$ pub global activate angel_cli
$ angel init hello
</code>
</pre>
</div>
</div>
</section>
<section class="code section">
<div class="columns">
<div class="text column">
<div class="title">
Ready for showtime.
<span class="emoji" data-emoji="✈️"></span>
</div>
<div class="subtitle">
With features like <b>hot reloading <span class="emoji" data-emoji="🔥"></span></b>, <b>GraphQL</b>,
and <b>ORM</b>, Angel is the perfect Dart backend to power
production apps.
<br><br>
Angel also provides support for <b>server-side templating</b>,
<b>WebSockets</b>, <b>authentication</b>, and much, much more.
</div>
<a href="https://github.com/angel-dart/awesome-angel#companies-using-angel-in-production"
class="button is-light" target="_blank">
See Angel in production...</a>
</div>
<div id="slider" class="column">
<img src="assets/images/hot_reload.png" alt="Hot Reload screenshot" class="screenshot"
style="display: none">
<pre>
<code class="dart">
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart';
main() async {
var app = Angel(), http = AngelHttp();
app
..get('/', (req, res) => res.writeln('Hello, Angel!'));
..fallback((req, res) => throw AngelHttpException.notFound());
await http.startServer('127.0.0.1', 3000);
print('Listening at ${http.uri}');
}
</code>
</pre>
<i class="fas fa-circle"></i>
<i class="far fa-circle"></i>
</div>
</div>
</section>
<section class="primary section">
<div class="columns">
<div class="column">
<pre>
<code class="dart">
@Expose('/accounts')
class AccountsController extends Controller {
// Auto-injected by Angel
final QueryExecutor executor;
AccountsController(this.executor);
@Expose('/:username/profile')
renderProfile(String username, ResponseContext res) async {
var query = UserQuery()..where.username.equals(username);
var user = await query.getOne(executor);
await res.render('profile', {'user': user});
}
}
</code>
</pre>
</div>
<div class="text column">
<div class="title">
Batteries included.
<span class="emoji" data-emoji="⚡️"></span>
</div>
<div class="subtitle">
With <b>over 3 dozen official extension packages and counting</b>, and
the flexibility to easily add functionality, Angel has all the tools
you need to build an application of any size.
</div>
<div class="subtitle">
Angel is designed with extensibility in mind, so even when you need a feature
that's not officially supported, you can easily implement it yourself.
</div>
<a href="https://github.com/angel-dart" target="_blank" class="button is-dark">
View all packages...
</a>
</div>
</div>
</section>
<section class="code section">
<div class="columns">
<div class="text column">
<div class="title">
It just works.
<span class="emoji" data-emoji="✨"></span>
</div>
<div class="subtitle">
Angel is stable, and won't unexpectedly break you. What's more,
components like ORM and serialization are designed from the ground-up
to work together, seamlessly.
<br><br>
And thanks to its
<a href="https://github.com/angel-dart/test" target="_blank">unit testing support</a>,
you can ensure that your product works as expected, before hitting production.
Spend less time worrying about unforeseen bugs, and more time getting your
product to market.
</div>
<a href="https://docs.angel-dart.dev/v/2.x/guides/testing" class="button is-light" target="_blank">
Learn about testing...
</a>
</div>
<div class="column">
<pre>
<code class="dart">
void main() {
TestClient client;
setUp(() async {
var app = Angel();
await app.configure(myApp.configureServer);
client = await connectTo(app);
});
tearDown(() => client.close());
test('cannot view secret content', () async {
var response = await client.get('/secret');
expect(response, hasStatus(403));
});
}
</code>
</pre>
</div>
</div>
</section>
<footer class="footer has-text-centered">
<nav class="level">
<div class="level-item has-text-centered">
<div>
<p class="heading">Latest Version</p>
<div class="title">
<a class="tags has-addons" href="https://pub.dartlang.org/packages/angel_framework"
target="_blank">
<span class="tag is-dark">pub</span>
<span class="tag is-info pub-version">...</span>
</a>
</div>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">Status</p>
<div class="title">
<a class="tags has-addons" href="https://pub.dartlang.org/packages/angel_framework"
target="_blank">
<span class="tag is-dark">build</span>
<span class="tag build-status">...</span>
</a>
</div>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">Stars</p>
<p class="title">
<i class="fab fa-github"></i>
<span class="stargazers">...</span>
</p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">License</p>
<div class="title">
<a class="tags has-addons" href="https://github.com/angel-dart/framework/blob/master/LICENSE"
target="_blank">
<span class="tag is-dark">
license
</span>
<span class="tag is-light">MIT</span>
</a>
</div>
</div>
</div>
</nav>
<br>
<div class="container">
<div class="subtitle">
© 2016 - <span class="year">...</span>
<a href="https://regiostech.com" target="_blank">Tobe Osakwe</a>.
</d>
</div>
</footer>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/languages/bash.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/languages/dart.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
$(function () {
// $('.has-dropdown').click(function() {
// $(this).toggleClass('is-active');
// });
$('.navbar-burger').click(function () {
$('.navbar-menu').toggleClass('is-active');
});
$('.year').text(new String(new Date().getFullYear()));
$('.emoji').each(function () {
var html = twemoji.parse($(this).attr('data-emoji'));
$(this).html(html);
});
$.getJSON('https://api.github.com/repos/angel-dart/angel', function (repo) {
$('.stargazers').text(repo.stargazers_count.toLocaleString());
});
var pubUrl = 'https://cors-anywhere.herokuapp.com/';
pubUrl += 'https://pub.dartlang.org/api/packages/angel_framework';
$.getJSON(pubUrl, function (res) {
var versions = res.versions;
var latestVersion = versions[versions.length - 1];
$('.pub-version').text(latestVersion.version);
});
var travisUrl = 'https://cors-anywhere.herokuapp.com/';
travisUrl += 'https://travis-ci.org/angel-dart/framework.svg?branch=master';
$.get(travisUrl, function (res) {
var status = res.querySelectorAll('g text')[2].textContent;
var buildClass;
if (status.indexOf('pass') !== -1) {
buildClass = 'is-primary';
} else if (status.indexOf('error') !== -1 || status.indexOf('fail') !== -1) {
buildClass = 'is-danger';
} else {
buildClass = 'is-light';
}
$('.build-status').addClass(buildClass).text(status);
}, 'xml');
var sliderButtons = $('#slider .fa-circle');
var sliderTimeout;
sliderButtons.click(sliderToggle);
sliderTimeout = setTimeout(sliderToggle, 5000);
function sliderToggle() {
$('#slider').toggleClass('has-image');
sliderButtons.toggleClass('far').toggleClass('fas');
if (sliderTimeout) clearTimeout(sliderTimeout);
sliderTimeout = setTimeout(sliderToggle, 5000);
}
});
</script>
</body>
</html>