Skip to content
Newer
Older
100644 77 lines (74 sloc) 3.08 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')
72c7d88 @rauchg refactored website
rauchg authored
8 link(href='docs/css/default.css', rel='stylesheet')
a6cc103 @aheckmann move css
aheckmann authored
9 link(href='docs/css/style.css', rel='stylesheet')
ebae145 @aheckmann merge newdocs with master
aheckmann authored
10 body
c4a183b @aheckmann docs
aheckmann authored
11 a#forkbanner(href="http://github.com/learnboost/mongoose")
ebae145 @aheckmann merge newdocs with master
aheckmann authored
12 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")
13 #wrap
14 #header
15 h1
16 a(href="https://github.com/learnboost/mongoose", target="blank")
17 .mongoose Mongoose
c4a183b @aheckmann docs
aheckmann authored
18 p.tagline
19 | Elegant
20 a(href="http://www.mongodb.org/", target="blank") MongoDB
21 | object modeling for
22 a(href="http://nodejs.org/", target="blank") Node.js
ebae145 @aheckmann merge newdocs with master
aheckmann authored
23 #links
24 ul
25 li
afa7426 @aheckmann docs
aheckmann authored
26 a(href="docs/guide.html") Docs
ebae145 @aheckmann merge newdocs with master
aheckmann authored
27 li
97c1df8 @aheckmann moar doxxxx
aheckmann authored
28 a(href="http://plugins.mongoosejs.com") Plugins
c4a183b @aheckmann docs
aheckmann authored
29 p.blurb.
b9da591 @aheckmann fix links
aheckmann authored
30 <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
31 #example
32 :js
33 var mongoose = require('mongoose');
34 var db = mongoose.createConnection('localhost', 'test');
35
36 var schema = mongoose.Schema({ name: 'string' });
37 var Cat = db.model('Cat', schema);
38
39 var kitty = new Cat({ name: 'Zildjian' });
40 kitty.save(function (err) {
41 if (err) // ...
42 res.end('meow');
43 });
44 #install
45 h2 Installation
46 :bash
47 $ npm install mongoose
48 #getstarted
49 h2 Getting Started
50 ul
51 li
867239a @aheckmann more docs
aheckmann authored
52 a(href="docs/index.html") quick start guide
ebae145 @aheckmann merge newdocs with master
aheckmann authored
53 #support
54 h2 Support
55 ul
56 li irc: #mongoosejs on freenode
57 li
58 a(href="http://groups.google.com/group/mongoose-orm") google group
59 li
60 a(href="https://github.com/learnboost/mongoose/issues/") bug reports
c4a183b @aheckmann docs
aheckmann authored
61 li
867239a @aheckmann more docs
aheckmann authored
62 a(href="http://www.mongodb.org/display/DOCS/Technical+Support") 10gen
ebae145 @aheckmann merge newdocs with master
aheckmann authored
63 #production
72c7d88 @rauchg refactored website
rauchg authored
64 h2
65 | Production
66 |
67 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
68 ul
69 each img in images
70 li
71 a(href=img.url, title=img.title + ' ' + img.desc)
72c7d88 @rauchg refactored website
rauchg authored
72 img(src="docs/images/apps/" + img.src + ".png", alt=img.title + ' ' + img.desc)
73 p#footer Licensed under MIT. Copyright 2011-1012 <a href="http://learnboost.com">LearnBoost</a>.
ebae145 @aheckmann merge newdocs with master
aheckmann authored
74 script.
75 document.body.className = 'load';
7d14641 @aheckmann docs
aheckmann authored
76 include docs/includes/googleanalytics
Something went wrong with that request. Please try again.