Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: KyleAMathews/Journal
...
head fork: KyleAMathews/Journal
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 42 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +27 −0 package.json
  3. +14 −0 post_schema.coffee
View
1  .gitignore
@@ -0,0 +1 @@
+node_modules/
View
27 package.json
@@ -0,0 +1,27 @@
+{
+ "name": "Journal",
+ "description": "Multi-user Journal App",
+ "version": "0.0.1",
+ "engines": {
+ "node": "~0.6.10"
+ },
+ "dependencies": {
+ "express": "2.x.x",
+ "moment": "1.x.x",
+ "underscore": "1.x.x",
+ "mongoose": "2.x.x",
+ "bcrypt": "0.x.x",
+ "connect-redis": "1.x.x",
+ "passport": "0.x.x",
+ "passport-local": "0.x.x",
+ "javascript-brunch": "1.0.x",
+ "coffee-script-brunch": "1.0.x",
+ "eco-brunch": "1.0.x",
+ "uglify-js-brunch": "1.0.x"
+ },
+ "devDependencies": {
+ "mocha": "1.x.x",
+ "expect.js": "0.x.x"
+ }
+}
+
View
14 post_schema.coffee
@@ -0,0 +1,14 @@
+mongoose = require('mongoose')
+mongoose.connect('mongodb://localhost/journal')
+
+# Setup MongoDB schemas.
+Schema = mongoose.Schema
+
+PostSchema = new Schema (
+ title: String
+ body: String
+ created: { type: Date, index: true }
+ changed: { type: Date, index: true }
+)
+
+mongoose.model 'post', PostSchema

No commit comments for this range

Something went wrong with that request. Please try again.