Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 238 lines (234 sloc) 13.274 kB
df1d1cd @aheckmann docs; regen
aheckmann authored
1 <!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 v3.0.2</title><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" type="text/css"><style>body {
ebae145 @aheckmann merge newdocs with master
aheckmann authored
2 background: #d8e2d8 url(/docs/images/square_bg.png); /* #D8E2D8 #B5F66E; /* #CEF6A4; */
3 font-family: 'Open Sans', Helvetica, Arial, FreeSans;
4 color: #333;
5 -webkit-font-smoothing: antialiased;
6 -webkit-text-size-adjust: 100%;
7 padding: 0;
8 margin: 0;
9 }
10 a {
11 color: #800;
12 -webkit-transition-property: opacity, -webkit-transform, color, background-color, padding, -webkit-box-shadow;
13 -webkit-transition-duration: 0.15s;
14 -webkit-transition-timing-function: ease-out;
15 }
16 a:hover {
17 opacity: 0.8;
18 }
19 #wrap {
20 width: 600px;
21 margin: 0 auto;
22 position:relative;
23 }
c4a183b @aheckmann docs
aheckmann authored
24 li {
25 list-style: square;
26 }
ebae145 @aheckmann merge newdocs with master
aheckmann authored
27 h1 {
28 font-family: 'Helvetica Nueue', Helvetica, Arial, FreeSans, sans-serif;
29 text-rendering: geometricPrecision;
30 }
31 pre {
32 background: rgba(255,255,255,.8);
33 border: 1px solid #bbb;
34 padding:5px;
35 border-radius: 3px;
36 box-shadow: 1px 3px 6px #ddd;
37 }
38 code {
39 background: rgba(255,255,255,.8);
40 border: 1px solid #c6c6c6;
41 color: #333;
c4a183b @aheckmann docs
aheckmann authored
42 border-radius: 3px;
43 font-size: 13px;
44 font-family: Monaco;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
45 }
46 pre code {
47 border: 0 none;
48 padding: 1.2em;
c4a183b @aheckmann docs
aheckmann authored
49 overflow-x: auto;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
50 }
51 #header {
52 text-align: center;
53 padding-top: 40px;
54 }
c4a183b @aheckmann docs
aheckmann authored
55 #header, h2, h3, .tagline, .blurb {
56 text-transform: lowercase;
57 }
ebae145 @aheckmann merge newdocs with master
aheckmann authored
58 #header h1 {
59 margin-top: 0;
60 margin-bottom: 0;
61 }
62 #header h1 a {
63 text-decoration: none;
64 }
65 #header .mongoose {
66 font-size: 146px;
67 font-weight: 100;
68 text-indent: -23px;
69 color: #fff;
70 text-shadow: 47px 5px 4px transparent, -6px 0 9px transparent;
878d4d6 @aheckmann fix ga and use layouts
aheckmann authored
71 /*-webkit-transition: text-shadow 2s ease-in-out;*/
72 /*-moz-transition: text-shadow 2s ease-in-out;*/
ebae145 @aheckmann merge newdocs with master
aheckmann authored
73 }
74 .load #header .mongoose {
75 text-shadow: 18px 5px 6px #777, -6px 0px 2px #fff;
76 letter-spacing: -14px;
77 }
c4a183b @aheckmann docs
aheckmann authored
78 .tagline {
ebae145 @aheckmann merge newdocs with master
aheckmann authored
79 color: #800;
2405386 @aheckmann tweak landing page
aheckmann authored
80 font-size: 25px;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
81 text-shadow: 1px 1px #f8f8f8;
c4a183b @aheckmann docs
aheckmann authored
82 text-align: center;
83 }
84 .blurb {
85 text-align: center;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
86 }
c4a183b @aheckmann docs
aheckmann authored
87 .tagline a, .blurb a {
ebae145 @aheckmann merge newdocs with master
aheckmann authored
88 text-decoration: none;
89 color: #800;
90 }
91 #links {
92 margin: 30px 10px 46px;
93 text-align: center;
94 position: relative;
95 }
96 #links ul {
97 margin: 0;
98 padding: 0;
99 }
100 #links li {
101 display: inline-block;
102 padding: 11px 3px;
103 border-radius: 5px;
104 border: 1px solid #bbb;
105 margin: 0 15px;
106 background-color: #fefefe;
107 }
108 #links a {
c4a183b @aheckmann docs
aheckmann authored
109 background: #444;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
110 padding: 9px 67px;
111 border-radius: 3px;
112 color: #fff;
113 text-decoration: none;
c4a183b @aheckmann docs
aheckmann authored
114 text-transform: lowercase;
115 text-shadow: 1px 1px 7px #222;
ebae145 @aheckmann merge newdocs with master
aheckmann authored
116 }
117 #production ul {
118 padding: 0;
119 }
120 #production li {
121 float: left;
122 list-style: none;
123 overflow: hidden;
124 height: 133px;
125 }
126 #production img {
127 width: 200px;
128 }
129 #production a {
130 -webkit-transition-property: opacity;
131 -moz-transition-property: opacity;
132 -o-transition-property: opacity;
133 transition-property: opacity;
134 -webkit-transition-duration: 0.25s;
135 -moz-transition-duration: 0.25s;
136 -o-transition-duration: 0.25s;
137 transition-duration: 0.25s;
138 opacity: 0.7;
139 }
140 #production a:hover {
141 opacity: 1.0;
142
143 }
144 .addyourown {
145 width: 200px;
146 height: 134px;
147 text-align: center;
148 }
149 .addyourown a {
150 display: block;
151 width: 200px;
152 height: 134px;
153 padding: 53px 0 0;
154 background-color: #F2F7ED;
c4a183b @aheckmann docs
aheckmann authored
155 background-color: #fff;
156 }
157 @media only screen and (max-width: 480px) {
158 #forkbanner { display: none }
159 #header {
160 padding-top: 12px;
161 }
162 #header .mongoose {
163 text-align: center;
164 font-size: 65px;
165 font-weight: 100;
166 color: #fff;
167 text-shadow: 6px 4px 5px #777, -2px 0px 2px white;
168 letter-spacing: -7px;
169 }
170 .load #header .mongoose {
171 text-shadow: 6px 4px 5px #777, -2px 0px 2px white;
172 letter-spacing: -7px;
173 }
174 .tagline {
175 text-align: center;
176 font-size: 14px;
177 }
178 .tagline a {
179 text-decoration: none;
180 }
181 .blurb {
182 font-size: 16px;
183 text-align: justify;
184 margin-top: 25px;
185 }
186 #links {
187 margin-bottom: 40px;
188 }
189 #links li {
190 padding: 8px 2px;
191 margin: 0 12px;
192 }
193 #links a {
194 background: #444;
195 padding: 7px 34px;
196 font-size: 15px;
197 }
198 #docs { margin-left: 0; }
199 .module {
200 padding-left: 5px;
201 border-width: 3px;
202 }
203 #wrap {
204 width: auto;
205 padding: 0 5px;
206 }
207 #production li {
208 margin-bottom: 8px;
209 }
210 #production a {
211 opacity: 1;
212 }
213 #production img {
214 width: 100%;
215 }
216 .addyourown, .addyourown a {
217 width: 100%;
218 }
219 }
62aa110 @aheckmann fix links
aheckmann authored
220 </style></head><body><a id="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"></a><div id="wrap"><div id="header"><h1><a href="https://github.com/learnboost/mongoose" target="blank"><div class="mongoose">Mongoose</div></a></h1></div><p class="tagline">Elegant <a href="http://www.mongodb.org/" target="blank">MongoDB</a> object modeling for <a href="http://nodejs.org/" target="blank">Node.js</a></p><div id="links"><ul><li><a href="docs/guide.html">Docs</a></li><li><a href="http://plugins.mongoosejs.com">Plugins</a></li></ul></div><p class="blurb"><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.</p><div id="example"><pre><code class="javascript"><span class="keyword">var</span> mongoose = require(<span class="string">'mongoose'</span>);
ebae145 @aheckmann merge newdocs with master
aheckmann authored
221 <span class="keyword">var</span> db = mongoose.createConnection(<span class="string">'localhost'</span>, <span class="string">'test'</span>);
222
223 <span class="keyword">var</span> schema = mongoose.Schema({ name: <span class="string">'string'</span> });
224 <span class="keyword">var</span> Cat = db.model(<span class="string">'Cat'</span>, schema);
225
226 <span class="keyword">var</span> kitty = <span class="keyword">new</span> Cat({ name: <span class="string">'Zildjian'</span> });
227 kitty.save(<span class="function"><span class="keyword">function</span> <span class="params">(err)</span> {</span>
228 <span class="keyword">if</span> (err) <span class="comment">// ...</span>
229 res.end(<span class="string">'meow'</span>);
3803501 @aheckmann docs; added more production examples
aheckmann authored
230 });</code></pre></div><div id="install"><h2>Installation</h2><pre><code class="bash">$ npm install mongoose</code></pre></div><div id="getstarted"><h2>Getting Started</h2><ul><li><a href="docs/index.html">quick start guide</a></li></ul></div><div id="support"><h2>Support</h2><ul><li>irc: #mongoosejs on freenode</li><li><a href="http://groups.google.com/group/mongoose-orm">google group</a></li><li><a href="https://github.com/learnboost/mongoose/issues/">bug reports</a></li><li><a href="http://www.mongodb.org/display/DOCS/Technical+Support">10gen</a></li></ul></div><div id="production"><h2>Production</h2><ul><li><a href="https://www.learnboost.com" title="LearnBoost is a free online gradebook, lesson planner, attendance, and reporting application for Teachers, Parents, and Students."><img src="/docs/images/apps/learnboost.png" alt="LearnBoost is a free online gradebook, lesson planner, attendance, and reporting application for Teachers, Parents, and Students."></a></li><li><a href="http://storify.com/" title="Storify lets you curate social networks to build social stories, bringing together media scattered across the Web into a coherent narrative."><img src="/docs/images/apps/storify.png" alt="Storify lets you curate social networks to build social stories, bringing together media scattered across the Web into a coherent narrative."></a></li><li><a href="https://clickdummy.com" title="ClickDummy is a rapid mockup prototyping application for designers and dummies."><img src="/docs/images/apps/clickdummy.png" alt="ClickDummy is a rapid mockup prototyping application for designers and dummies."></a></li><li><a href="http://scottyapp.com" title="Scotty App allows you to create data driven backends for your apps in minutes instead of weeks."><img src="/docs/images/apps/scottyapp.png" alt="Scotty App allows you to create data driven backends for your apps in minutes instead of weeks."></a></li><li><a href="http://geekli.st" title="Geeklist is an achievement-based social portfolio builder where all bad-ass code monkeys around the globe can communicate, brag, build their street cred and get found."><img src="/docs/images/apps/geeklist.png" alt="Geeklist is an achievement-based social portfolio builder where all bad-ass code monkeys around the globe can communicate, brag, build their street cred and get found."></a></li><li><a href="https://bozuko.com" title="Bozuko is an exciting customer rewards program."><img src="/docs/images/apps/bozuko.png" alt="Bozuko is an exciting customer rewards program."></a></li><li><a href="http://calllistapp.com" title="Call List helps you maintain a todo list for people you need to call."><img src="/docs/images/apps/calllist.png" alt="Call List helps you maintain a todo list for people you need to call."></a></li><li><a href="http://www.gtggolf.com" title="Grow The Game Golf lets you think, act, and score your golf game like a pro with real-time scoring, live leaderboards and more."><img src="/docs/images/apps/growthegamegolf.png" alt="Grow The Game Golf lets you think, act, and score your golf game like a pro with real-time scoring, live leaderboards and more."></a></li><li><a href="http://nextdays.com/" title="nextdays lets you share plans with friends and discover what is happening around you."><img src="/docs/images/apps/nextdays.png" alt="nextdays lets you share plans with friends and discover what is happening around you."></a></li><li><a href="http://linkr.cc" title="Linkr is a service for saving links for reading later."><img src="/docs/images/apps/linkr.png" alt="Linkr is a service for saving links for reading later."></a></li><li><a href="http://www.attictv.com/" title="AtticTV is Music Television (MTV) for the web."><img src="/docs/images/apps/attictv.png" alt="AtticTV is Music Television (MTV) for the web."></a></li><li><a href="https://localresponse.com" title="LocalResponse helps marketers respond to real-time consumer intent."><img src="/docs/images/apps/localresponse.png" alt="LocalResponse helps marketers respond to real-time consumer intent."></a></li><li><a href="http://selectvids.com" title="Select Vids is a collection of amazing, funny, and creative videos for you to discover."><img src="/docs/images/apps/selectvids.png" alt="Select Vids is a collection of amazing, funny, and creative videos for you to discover."></a></li><li><a href="https://cldfy.com/" title="cldfy delivers mail to your app."><img src="/docs/images/apps/cldfy.png" alt="cldfy delivers mail to your app."></a></li><li><a href="http://www.sharelatex.com" title="ShareLatex is a real-time LaTeX collaboration tool."><img src="/docs/images/apps/sharelatex.png" alt="ShareLatex is a real-time LaTeX collaboration tool."></a></li><li><a href="http://apps.newleafdigital.com/lists" title="Lists is a service for saving links for reading later."><img src="/docs/images/apps/lists.png" alt="Lists is a service for saving links for reading later."></a></li><li><a href="http://cyborgvisionapp.com/" title="Cyborg Vision uses real-time facial recognition to identify your friends and show their information."><img src="/docs/images/apps/cyborgvision.png" alt="Cyborg Vision uses real-time facial recognition to identify your friends and show their information."></a></li><li><a href="https://wavo.me/" title="Wavo lets you express yourself through the songs you love."><img src="/docs/images/apps/wavo.png" alt="Wavo lets you express yourself through the songs you love."></a></li><li><a href="http://seelio.com/" title="seelio is a stage for college students to distinguish themselves and connect with companies."><img src="/docs/images/apps/seelio.png" alt="seelio is a stage for college students to distinguish themselves and connect with companies."></a></li><li><a href="http://todaylaunch.com/" title="TodayLaunch is a free dashboard for your social media accounts."><img src="/docs/images/apps/todaylaunch.png" alt="TodayLaunch is a free dashboard for your social media accounts."></a></li><li><a href="http://st.achify.com/" title="Stachify "><img src="/docs/images/apps/stachify.png" alt="Stachify "></a></li><li class="addyourown"><a href="mailto:aaronheckmann+github@gmail.com?subject=Please add my project to mongoosejs.com" title="add/remove your project">add your project</a></li></ul></div></div><script>document.body.className = 'load';</script><script>var _gaq = _gaq || [];
3759566 @aheckmann regen with ga enabled
aheckmann authored
231 _gaq.push(['_setAccount', 'UA-1122274-9']);
232 _gaq.push(['_trackPageview']);
233
234 (function() {
235 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
236 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
237 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
238 })();</script></body></html>
Something went wrong with that request. Please try again.