From 2a653295b4842977d6f3abaa87250740f98b0401 Mon Sep 17 00:00:00 2001 From: ang-st Date: Sat, 6 Jun 2015 02:12:32 +0000 Subject: [PATCH] bla --- app.js | 4 +- db.js | 89 ++++++++++++++-- db_git.js | 193 +++++++++++++++++++++++++++++++++++ pages/00_main_title.markdown | 2 +- pages/02_conference.markdown | 2 +- pages/08_stream.markdown | 1 + routes/index.js | 1 + 7 files changed, 277 insertions(+), 15 deletions(-) create mode 100644 db_git.js diff --git a/app.js b/app.js index 6b09ff9..dd82aa6 100644 --- a/app.js +++ b/app.js @@ -76,8 +76,8 @@ App.configure('production', function(){ App.get('/', Routes.index); App.get('/signin', Routes.signIn); App.post('/signin', Routes.signInPost); -//App.get('/signup', Routes.signUp); -//App.post('/signup', Routes.signUpPost); +App.get('/signup', Routes.signUp); +App.post('/signup', Routes.signUpPost); App.get('/signout', Routes.signout) //App.get('/:name', Routes.view); App.get('/:name/edit', Routes.edit); diff --git a/db.js b/db.js index 65c82aa..82b7937 100644 --- a/db.js +++ b/db.js @@ -7,6 +7,7 @@ var Bookshelf = require('bookshelf'); var async = require('async'); var textile = require('textile-js') +var nodegit = require("nodegit") var Markdown = textile //Markdown = require('js-markdown-extra').Markdown @@ -14,6 +15,7 @@ function orderize(files){ var pageObjs = [] for (var i = 0; i