Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 295 lines (290 sloc) 8.52 kB
ebae145 @aheckmann merge newdocs with master
aheckmann authored
1 doctype html
2 html(lang='en')
3 head
4 meta(charset='utf-8')
c4a183b @aheckmann docs
aheckmann authored
5 meta(name="viewport", content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")
7d14641 @aheckmann docs
aheckmann authored
6 title Mongoose ODM v#{package.version}
ebae145 @aheckmann merge newdocs with master
aheckmann authored
7 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')
8 link(href='/docs/css/default.css', rel='stylesheet', type='text/css')
9 style.
10 body {
11 background: #d8e2d8 url(/docs/images/square_bg.png); /* #D8E2D8 #B5F66E; /* #CEF6A4; */
12 font-family: 'Open Sans', Helvetica, Arial, FreeSans;
13 color: #333;
14 -webkit-font-smoothing: antialiased;
15 -webkit-text-size-adjust: 100%;
16 padding: 0;
17 margin: 0;
18 }
19 a {
20 color: #800;
21 -webkit-transition-property: opacity, -webkit-transform, color, background-color, padding, -webkit-box-shadow;
22 -webkit-transition-duration: 0.15s;
23 -webkit-transition-timing-function: ease-out;
24 }
25 a:hover {
26 opacity: 0.8;
27 }
28 #wrap {
29 width: 600px;
30 margin: 0 auto;
31 position:relative;
32 }
c4a183b @aheckmann docs
aheckmann authored
33 li {
34 list-style: square;
35 }
ebae145 @aheckmann merge newdocs with master
aheckmann authored
36 h1 {
37 font-family: 'Helvetica Nueue', Helvetica, Arial, FreeSans, sans-serif;
38 text-rendering: geometricPrecision;
39 }
40 pre {
41 background: rgba(255,255,255,.8);
42 border: 1px solid #bbb;
43 padding:5px;
44 border-radius: 3px;
45 box-shadow: 1px 3px 6px #ddd;
46 }
47 code {
48 background: rgba(255,255,255,.8);
49 border: 1px solid #c6c6c6;
50 color: #333;
c4a183b @aheckmann docs
aheckmann authored
51 border-radius: 3px;
52 font-size: 13px;
53 font-family: Monaco;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
54 }
55 pre code {
56 border: 0 none;
57 padding: 1.2em;
c4a183b @aheckmann docs
aheckmann authored
58 overflow-x: auto;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
59 }
60 #header {
61 text-align: center;
62 padding-top: 40px;
63 }
c4a183b @aheckmann docs
aheckmann authored
64 #header, h2, h3, .tagline, .blurb {
65 text-transform: lowercase;
66 }
ebae145 @aheckmann merge newdocs with master
aheckmann authored
67 #header h1 {
68 margin-top: 0;
69 margin-bottom: 0;
70 }
71 #header h1 a {
72 text-decoration: none;
73 }
74 #header .mongoose {
75 font-size: 146px;
76 font-weight: 100;
77 text-indent: -23px;
78 color: #fff;
79 text-shadow: 47px 5px 4px transparent, -6px 0 9px transparent;
221cfee @aheckmann disabled logo animation
aheckmann authored
80 /*-webkit-transition: text-shadow 2s ease-in-out;*/
81 /*-moz-transition: text-shadow 2s ease-in-out;*/
ebae145 @aheckmann merge newdocs with master
aheckmann authored
82 }
83 .load #header .mongoose {
84 text-shadow: 18px 5px 6px #777, -6px 0px 2px #fff;
85 letter-spacing: -14px;
86 }
c4a183b @aheckmann docs
aheckmann authored
87 .tagline {
ebae145 @aheckmann merge newdocs with master
aheckmann authored
88 color: #800;
2405386 @aheckmann tweak landing page
aheckmann authored
89 font-size: 25px;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
90 text-shadow: 1px 1px #f8f8f8;
c4a183b @aheckmann docs
aheckmann authored
91 text-align: center;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
92 }
c4a183b @aheckmann docs
aheckmann authored
93 .blurb {
94 text-align: center;
95 }
96 .tagline a, .blurb a {
ebae145 @aheckmann merge newdocs with master
aheckmann authored
97 text-decoration: none;
98 color: #800;
99 }
100 #links {
101 margin: 30px 10px 46px;
102 text-align: center;
103 position: relative;
104 }
105 #links ul {
106 margin: 0;
107 padding: 0;
108 }
109 #links li {
110 display: inline-block;
111 padding: 11px 3px;
112 border-radius: 5px;
113 border: 1px solid #bbb;
114 margin: 0 15px;
115 background-color: #fefefe;
116 }
117 #links a {
c4a183b @aheckmann docs
aheckmann authored
118 background: #444;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
119 padding: 9px 67px;
120 border-radius: 3px;
121 color: #fff;
122 text-decoration: none;
c4a183b @aheckmann docs
aheckmann authored
123 text-transform: lowercase;
124 text-shadow: 1px 1px 7px #222;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
125 }
126 #production ul {
127 padding: 0;
128 }
129 #production li {
130 float: left;
131 list-style: none;
132 overflow: hidden;
133 height: 133px;
134 }
135 #production img {
136 width: 200px;
137 }
138 #production a {
139 -webkit-transition-property: opacity;
140 -moz-transition-property: opacity;
141 -o-transition-property: opacity;
142 transition-property: opacity;
143 -webkit-transition-duration: 0.25s;
144 -moz-transition-duration: 0.25s;
145 -o-transition-duration: 0.25s;
146 transition-duration: 0.25s;
147 opacity: 0.7;
148 }
149 #production a:hover {
150 opacity: 1.0;
151
152 }
153 .addyourown {
154 width: 200px;
155 height: 134px;
156 text-align: center;
157 }
158 .addyourown a {
159 display: block;
160 width: 200px;
161 height: 134px;
162 padding: 53px 0 0;
163 background-color: #F2F7ED;
c4a183b @aheckmann docs
aheckmann authored
164 background-color: #fff;
165 }
166 @media only screen and (max-width: 480px) {
167 #forkbanner { display: none }
168 #header {
169 padding-top: 12px;
170 }
171 #header .mongoose {
172 text-align: center;
173 font-size: 65px;
174 font-weight: 100;
175 color: #fff;
176 text-shadow: 6px 4px 5px #777, -2px 0px 2px white;
177 letter-spacing: -7px;
178 }
179 .load #header .mongoose {
180 text-shadow: 6px 4px 5px #777, -2px 0px 2px white;
181 letter-spacing: -7px;
182 }
183 .tagline {
184 text-align: center;
185 font-size: 14px;
186 }
187 .tagline a {
188 text-decoration: none;
189 }
190 .blurb {
191 font-size: 16px;
192 text-align: justify;
193 margin-top: 25px;
194 }
195 #links {
196 margin-bottom: 40px;
197 }
198 #links li {
199 padding: 8px 2px;
200 margin: 0 12px;
201 }
202 #links a {
203 background: #444;
204 padding: 7px 34px;
205 font-size: 15px;
206 }
207 #docs { margin-left: 0; }
208 .module {
209 padding-left: 5px;
210 border-width: 3px;
211 }
212 #wrap {
213 width: auto;
214 padding: 0 5px;
215 }
216 #production li {
217 margin-bottom: 8px;
218 }
219 #production a {
220 opacity: 1;
221 }
222 #production img {
223 width: 100%;
224 }
225 .addyourown, .addyourown a {
226 width: 100%;
227 }
ebae145 @aheckmann merge newdocs with master
aheckmann authored
228 }
c4a183b @aheckmann docs
aheckmann authored
229
ebae145 @aheckmann merge newdocs with master
aheckmann authored
230 body
c4a183b @aheckmann docs
aheckmann authored
231 a#forkbanner(href="http://github.com/learnboost/mongoose")
ebae145 @aheckmann merge newdocs with master
aheckmann authored
232 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")
233 #wrap
234 #header
235 h1
236 a(href="https://github.com/learnboost/mongoose", target="blank")
237 .mongoose Mongoose
c4a183b @aheckmann docs
aheckmann authored
238 p.tagline
239 | Elegant
240 a(href="http://www.mongodb.org/", target="blank") MongoDB
241 | object modeling for
242 a(href="http://nodejs.org/", target="blank") Node.js
ebae145 @aheckmann merge newdocs with master
aheckmann authored
243 #links
244 ul
245 li
afa7426 @aheckmann docs
aheckmann authored
246 a(href="docs/guide.html") Docs
ebae145 @aheckmann merge newdocs with master
aheckmann authored
247 li
97c1df8 @aheckmann moar doxxxx
aheckmann authored
248 a(href="http://plugins.mongoosejs.com") Plugins
c4a183b @aheckmann docs
aheckmann authored
249 p.blurb.
b9da591 @aheckmann fix links
aheckmann authored
250 <a href="docs/middleware.html">Flexible</a>, <a href="docs/guide.html">schema based</a> and <a href="docs/queries.html">feature-rich</a>, mongoose solves common problems for <a href="#production">real-world</a> applications.
ebae145 @aheckmann merge newdocs with master
aheckmann authored
251 #example
252 :js
253 var mongoose = require('mongoose');
254 var db = mongoose.createConnection('localhost', 'test');
255
256 var schema = mongoose.Schema({ name: 'string' });
257 var Cat = db.model('Cat', schema);
258
259 var kitty = new Cat({ name: 'Zildjian' });
260 kitty.save(function (err) {
261 if (err) // ...
262 res.end('meow');
263 });
264 #install
265 h2 Installation
266 :bash
267 $ npm install mongoose
268 #getstarted
269 h2 Getting Started
270 ul
271 li
867239a @aheckmann more docs
aheckmann authored
272 a(href="docs/index.html") quick start guide
ebae145 @aheckmann merge newdocs with master
aheckmann authored
273 #support
274 h2 Support
275 ul
276 li irc: #mongoosejs on freenode
277 li
278 a(href="http://groups.google.com/group/mongoose-orm") google group
279 li
280 a(href="https://github.com/learnboost/mongoose/issues/") bug reports
c4a183b @aheckmann docs
aheckmann authored
281 li
867239a @aheckmann more docs
aheckmann authored
282 a(href="http://www.mongodb.org/display/DOCS/Technical+Support") 10gen
ebae145 @aheckmann merge newdocs with master
aheckmann authored
283 #production
284 h2 Production
285 ul
286 each img in images
287 li
288 a(href=img.url, title=img.title + ' ' + img.desc)
289 img(src="/docs/images/apps/" + img.src + ".png", alt=img.title + ' ' + img.desc)
290 li.addyourown
c4a183b @aheckmann docs
aheckmann authored
291 a(href='mailto:aaronheckmann+github@gmail.com?subject=Please add my project to mongoosejs.com', title='add/remove your project') add your project
ebae145 @aheckmann merge newdocs with master
aheckmann authored
292 script.
293 document.body.className = 'load';
7d14641 @aheckmann docs
aheckmann authored
294 include docs/includes/googleanalytics
Something went wrong with that request. Please try again.