forked from Automattic/mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jade
123 lines (121 loc) · 5.49 KB
/
index.jade
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
doctype html
html(lang='en')
head
meta(charset='utf-8')
meta(name="viewport", content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")
title Mongoose ODM v#{package.version}
link(href='http://fonts.googleapis.com/css?family=Anonymous+Pro:400,700|Droid+Sans+Mono|Open+Sans:400,700|Linden+Hill|Quattrocento:400,700|News+Cycle:400,700|Antic+Slab|Cabin+Condensed:400,700', rel='stylesheet', type='text/css')
link(href='docs/css/default.css', rel='stylesheet')
link(href='docs/css/style.css', rel='stylesheet')
body
a#forkbanner(href="http://github.com/learnboost/mongoose")
img(style="position: absolute; top: 0; right: 0; border: 0;", src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png", alt="Fork me on GitHub")
#wrap.homepage
#header
h1
a(href="https://github.com/learnboost/mongoose", target="blank")
.mongoose Mongoose
p.tagline
| Elegant
a(href="http://www.mongodb.org/", target="blank") MongoDB
| object modeling for
a(href="http://nodejs.org/", target="blank") Node.js
#links
ul
li
a(href="docs/guide.html") Read the Docs
li
a(href="http://plugins.mongoosejs.io") Discover Plugins
#follow
ul
li
iframe(class="github-btn", src="http://ghbtns.com/github-btn.html?user=learnboost&repo=mongoose&type=watch&count=true", allowtransparency="true", frameborder="0", scrolling="0", width="100px", height="20px")
li#version
span
| Version #{package.version}
li
iframe(class="github-btn", src="http://ghbtns.com/github-btn.html?user=learnboost&repo=mongoose&type=fork&count=true", allowtransparency="true", frameborder="0", scrolling="0", width="100px", height="20px")
#inner
#what
p.what
| Let's face it,
strong writing MongoDB validation, casting and business logic boilerplate is a drag
| . That's why we wrote Mongoose.
#example
:js
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var Cat = mongoose.model('Cat', { name: String });
var kitty = new Cat({ name: 'Zildjian' });
kitty.save(function (err) {
if (err) {
console.log(err);
} else {
console.log('meow');
}
});
p.what Mongoose provides a straight-forward, schema-based solution to model your application data. It includes built-in type casting, validation, query building, business logic hooks and more, out of the box.
#getstarted
h2 Getting Started
ul
li
a(href="docs/index.html") quick start guide
#support
h2 Support
ul
li
a(href="http://stackoverflow.com/questions/tagged/mongoose") Stack Overflow
li
a(href="https://github.com/Automattic/mongoose/issues/") bug reports
li
a(href="http://groups.google.com/group/mongoose-orm") Google Group
li
a(href="https://gitter.im/Automattic/mongoose") Gitter chat
li
a(href="http://www.mongodb.org/about/support/") MongoDB support
#announcements
h2 News
ul
li
a(href="https://twitter.com/mongoosejs") @mongoosejs
li
a(href="http://groups.google.com/group/mongoose-orm") Google Group
#changelog
h2 Changelog
ul
li
a(href="https://github.com/Automattic/mongoose/blob/master/History.md") Changelog
#production
h2
| Production
|
a(href='http://mongoosejs.tumblr.com/', target='_blank', title='More production examples') View More
ul
li
a(href="http://www.mongodb.com/presentations/building-linkedins-learning-platform-mongodb")
img(src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/LinkedIn_Logo_2013.svg/568px-LinkedIn_Logo_2013.svg.png", alt="LinkedIn")
li
a(href="https://prezi.com/pa1ub5unrapt/trello-architecture-2013/")
img(src="http://upload.wikimedia.org/wikipedia/en/3/3e/Trello_Logo.png", alt="Trello")
li
a(href="http://storify.com/", alt="Storify")
img(src="docs/images/apps/h_storify.jpg", alt="Storify")
li
a(href="http://geekli.st", alt="GeekList")
img(src="docs/images/apps/h_geeklist.png", alt="GeekList")
li
a(href="http://bookalokal.com")
img(src="http://s3.amazonaws.com/bookalokal-assets/images/bookalokal.svg", alt="BookaLokal")
li
a(href="http://www.elevenjames.com")
img(src="http://i.imgur.com/vx8KH9Z.jpg", alt="Eleven James")
li
a(href="https://bozuko.com/", alt="Bozuko")
img(src="docs/images/apps/h_bozuko.jpg", alt="Bozuko")
li
a(href="http://yourquestions.mcdonalds.ca/")
img#mcds(src="docs/images/apps/h_mcds.png", alt="McDonalds")
p#footer Licensed under MIT. Copyright 2011 <a href="http://learnboost.com">LearnBoost</a>.
script.
document.body.className = 'load';
include docs/includes/googleanalytics