forked from Automattic/mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.pug
237 lines (207 loc) · 11.1 KB
/
index.pug
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
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="//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")
link(href="/docs/css/github.css", rel="stylesheet")
style.
code {
font-size: 1em;
}
.sponsor {
margin-bottom: 40px;
font-size: 0.66em;
color: #666;
text-decoration: none;
}
.sponsors {
margin-bottom: 40px;
}
.sponsors a {
text-decoration: none;
}
.carbonad{
margin-top:0!important;
margin-bottom:-3rem!important
}
#carbonads {
position:fixed;
right: 0px;
bottom: 0px;
display:block;
width:200px;
padding:15px 15px 15px 160px;
overflow:hidden;
font-size:13px;
line-height:1.4;
text-align:left;
background-color: #fafafa;
}
@media (max-width: 1160px) {
#carbonads {
display: none !important;
}
}
#carbonads a{color:#333;text-decoration:none}
.carbon-img{float:left;margin-left:-145px}
.carbon-poweredby{display:block;color:#777!important}
img.sponsor {
margin-right: 10px;
border: 1px dotted #dfdfdf;
height: 100px;
}
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/Automattic/mongoose", target="blank")
.mongoose Mongoose
div.tagline
:markdown
Elegant [MongoDB](https://www.mongodb.com/) object modeling for
[Node.js](https://nodejs.org/en/)
#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="//ghbtns.com/github-btn.html?user=Automattic&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="//ghbtns.com/github-btn.html?user=Automattic&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.
:markdown
```javascript
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/test', {useNewUrlParser: true});
const Cat = mongoose.model('Cat', { name: String });
const kitty = new Cat({ name: 'Zildjian' });
kitty.save().then(() => console.log('meow'));
```
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.
#tidelift.
<a id="tidelift-button" href="https://tidelift.com/subscription/pkg/npm-mongoose?utm_source=npm-mongoose&utm_medium=website">
<img src="/docs/images/tidelift.svg" />
<span>Get Professionally Supported Mongoose</span>
</a>
div.carbon-ad
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=mongoosejscom" id="_carbonads_js"></script>
:markdown
## Getting Started
* [quick start guide](/docs/index.html)
## Support
* [Stack Overflow](http://stackoverflow.com/questions/tagged/mongoose)
* [GitHub Issues](https://github.com/Automattic/mongoose/issues)
* [Gitter Chat](https://gitter.im/Automattic/mongoose)
* [MongoDB Support](http://www.mongodb.org/about/support/)
## News
* [Twitter](https://twitter.com/mongoosejs)
## Changelog
* [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
## Sponsors
<div class="sponsors">
<div>
<a href="https://www.codefirst.co.uk/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2Fdde88120-e914-11e8-a662-278259d35390.png&height=100">
</a>
<a href="https://www.dontpayfull.com/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2F84c4ba80-1955-11e8-8343-278614155b3e.png&height=100" style="height:100px">
</a>
<a href="https://www.vpsserver.com/">
<img class="sponsor" src="https://pbs.twimg.com/profile_images/750300526538027008/jo7cFmU9_400x400.jpg" style="height: 100px">
</a>
<a href="https://icons8.com/">
<img class="sponsor" src="https://s3.amazonaws.com/codebarbarian-images/Icons8+Logo+500px.png" style="height:100px">
</a>
<a href="https://topvet.net/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Flogo.clearbit.com%2Ftopvet.net&height=100" style="height:100px">
</a>
<a href="https://www.embedgooglemap.net/blog/best-wordpress-themes/">
<img class="sponsor" title=" Best WordPress Themes " src="https://www.embedgooglemap.net/ultimate-wp-logo.png" style="height:100px">
</a>
<a href="https://craftresumes.com/professional-resume-writer/">
<img class="sponsor" alt="Professional resume writer" src="https://s3.amazonaws.com/codebarbarian-images/craftresumes.png">
</a>
<a href="https://domainwheel.com/">
<img class="sponsor" src="https://s25990.pcdn.co/wp-content/themes/namegenerator/img/logo_dw.jpg" style="height:100px">
</a>
<a href="https://uiuxagencies.top/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2F62223ab0-f4f7-11e8-919f-53f2ea21a967.png&height=100" style="height:100px">
</a>
<a href="https://www.promocodewatch.com/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2Fbd0053f0-4f64-11e9-8022-91853c58485e.png&height=100" style="height:100px">
</a>
<a href="https://www.vpnranks.com/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Flogo.clearbit.com%2Fvpnranks.com&height=100" style="height:100px">
</a>
<a href="https://www.bestvpn.co/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Flogo.clearbit.com%2Fwww.bestvpn.co&height=100" style="height:100px">
</a>
<a href="https://blokt.com/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Flogo.clearbit.com%2Fblokt.com&height=100" style="height:100px">
</a>
<a href="https://paperleaf.ca/">
<img class="sponsor" alt="Essay writing service in Canada" src="https://s3.amazonaws.com/codebarbarian-images/paperleaf.jpg">
</a>
<a href="https://usave.co.uk/utilities/broadband/">
<img class="sponsor" title="Compare broadband deals with usave" src="https://usave.co.uk/img/brand/brand-logo.png" style="height:100px">
</a>
<a href="http://clay.global/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2F09d57c90-637c-11e7-9ed2-bfa12b0351e8.jpg&height=100" style="height: 100px">
</a>
<a href="https://tekhattan.com/">
<img class="sponsor" src="https://images.opencollective.com/proxy/images?src=https%3A%2F%2Fopencollective-production.s3-us-west-1.amazonaws.com%2F31835450-5a98-11e9-adb1-e17fccd4c65e.png&height=80" style="height:80px">
</a>
<a href="https://www.rabathelten.dk/">
<img class="sponsor" src="/docs/images/dk.png" style="height: 100px">
</a>
<a href="https://lemonlaw.site/">
<img class="sponsor" src="https://images.opencollective.com/lemon-law/logo.png" style="height: 100px">
</a>
<a href="https://uxplanet.org/top-ui-ux-design-agencies-user-experience-firms-8c54697e290">
<img class="sponsor" src="https://images.opencollective.com/ux-top-5/cae5dfe/logo.png" style="height: 100px">
</a>
<a href="https://proxybaylist.org/">
<img class="sponsor" src="https://images.opencollective.com/proxy-bay/e176fe4/avatar.png" style="height: 100px">
</a>
<a href="https://www.ehic-cards.org.uk/">
<img class="sponsor" src="https://images.opencollective.com/limit-limited/c61b047/logo.png" style="height: 100px">
</a>
<a href="https://www.dcslsoftware.com/">
<img class="sponsor" src="https://images.opencollective.com/dcsl-software/a662911/logo.png" style="height: 100px">
</a>
<a href="https://papersowl.com/">
<img class="sponsor" alt="Essay writing service" src="https://codebarbarian-images.s3.amazonaws.com/papersowl-big.png" style="height: 100px">
</a>
<a href="https://ghostinspector.com/">
<img class="sponsor" src="https://images.opencollective.com/ghostinspector/51b7be8/logo.png" style="height: 100px">
</a>
</div>
</div>
<div class="sponsor">
Sponsor <a href="https://opencollective.com/mongoose">Mongoose on OpenCollective</a>
to get your company's logo above!
</div>
p#footer Licensed under MIT. Copyright 2011 <a href="http://learnboost.com">LearnBoost</a>.
script.
document.body.className = 'load';
include docs/includes/track