We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: 10gen sample application for student management
Homepage: https://sample-student.10gen.com/
Clone URL: git://github.com/10gen/sample-student.git
bsaic course management
erh (author)
Thu Jul 10 13:08:56 -0700 2008
commit  c2ae93453170d6154423cdb2d763b5d636b29806
tree    861d629a09396d4bee4e51c4420a5e77a1ae5e28
parent  36bdab4e550a1c0c7e7045ff5f0c9a70c6f734c7
...
16
17
18
 
 
 
 
 
 
...
16
17
18
19
20
21
22
23
24
0
@@ -16,3 +16,9 @@ routes = new Routes();
0
 
0
 routes.student = "/student.jxp";
0
 routes.add( "students" , "/student.jxp" , { extra : { action : "list" } } );
0
+
0
+routes.add( "courses" , "course" , { extra : { action : "list" } } );
0
+
0
+//core.modules.forum.setup();
0
+//routes.forum = Forum.routes;
0
+//assert( routes.forum );
...
4
5
6
7
 
8
...
4
5
6
 
7
8
0
@@ -4,5 +4,5 @@ Course = function(name) {
0
 
0
 Course.prototype.toString = function() { return 'Course ' + this.name; }
0
 
0
-db.courses.setConstructor(Course);
0
+Course.__proto__ = new ModelBase( "courses" , Course );
0
 
...
3
4
5
6
 
 
 
 
7
8
9
...
3
4
5
 
6
7
8
9
10
11
12
0
@@ -3,7 +3,10 @@
0
   <body>
0
 
0
     <h2><a href="/">Student Example</a></h2>
0
- <a href="/students">Student List</a>
0
+ <ul>
0
+ <li><a href="/students">Student List</a></li>
0
+ <li><a href="/courses">Course List</a></li>
0
+ </ul>
0
     <hr>
0
     
0
     {% if msg %}

Comments

    No one has commented yet.