Permalink
Browse files

working on re-build in node/express

  • Loading branch information...
derickbailey committed Sep 22, 2012
1 parent 2e06576 commit 611d0869f5902621a5467dd5c71c555c45362e8a
Showing 2,338 changed files with 209,849 additions and 0 deletions.
View
BIN .DS_Store
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,40 @@
+
+/**
+ * Module dependencies.
+ */
+
+var express = require('express'),
+ routes = require('./routes'),
+ http = require('http'),
+ path = require('path');
+
+var app = express();
+
+app.configure(function(){
+ app.set('port', process.env.PORT || 3000);
+ app.set('views', __dirname + '/views');
+ app.set('view engine', 'jade');
+ app.use(express.favicon());
+ app.use(express.logger('dev'));
+ app.use(express.bodyParser());
+ app.use(express.methodOverride());
+ app.use(app.router);
+ app.use(express.static(path.join(__dirname, 'public')));
+});
+
+global.NODE_ENV = app.settings.env;
+
+app.configure('development', function(){
+ app.use(express.errorHandler());
+});
+
+app.get('/', routes.index);
+app.get("/images", routes.getImages);
+app.get("/images/:id", routes.getImageById);
+app.post("/images", routes.createImage);
+app.put("/images/:id", routes.updateImage);
+app.delete("/images/:id", routes.deleteImage);
+
+http.createServer(app).listen(app.get('port'), function(){
+ console.log("Express server listening on port " + app.get('port'));
+});
@@ -0,0 +1,72 @@
+/*global module:false*/
+module.exports = function(grunt) {
+
+ grunt.loadNpmTasks('grunt-jasmine-runner');
+
+ grunt.initConfig({
+ meta: {
+ version: '0.2.0',
+ banner: '// BBCloneMail, v<%= meta.version %>\n' +
+ '// Copyright (c)<%= grunt.template.today("yyyy") %> Muted Solutions, LLC.\n' +
+ '// Distributed under MIT license\n' +
+ '// http://github.com/derickbailey/bbclonemail'
+ },
+
+ concat: {
+ dist: {
+ src: [
+ "public/javascripts/vendor/json2.js",
+ "public/javascripts/vendor/jquery.js",
+ "public/javascripts/vendor/underscore.js",
+ "public/javascripts/vendor/backbone.js",
+ "public/javascripts/vendor/backbone.routefilter.js",
+ "public/javascripts/vendor/backbone.marionette.js",
+ "public/javascripts/vendor/marionette.wreqr.js",
+ "public/javascripts/bbclonemail/bbclonemail.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailrouter.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailapp.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailapp.mail.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailapp.inbox.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactsapp.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactrouter.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactsapp.contacts.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactsapp.contactlist.js",
+ "public/javascripts/bbclonemail/**/*.js"
+ ],
+ dest: 'public/javascripts/build/bbclonemail.js'
+ }
+ },
+
+ min: {
+ dist: {
+ src: ['public/javascripts/build/bbclonemail.js'],
+ dest: 'public/javascripts/build/bbclonemail.min.js'
+ }
+ },
+
+ jasmine : {
+ src : [
+ 'public/javascripts/vendor/jquery.js',
+ 'public/javascripts/vendor/json2.js',
+ 'public/javascripts/vendor/underscore.js',
+ 'public/javascripts/vendor/backbone.js',
+ 'public/javascripts/vendor/backbone.routefilter.js',
+ 'public/javascripts/vendor/backbone.marionette.js',
+ 'public/javascripts/vendor/marionette.wreqr.js',
+ 'public/javascripts/bbclonemail/bbclonemail.js',
+ 'public/javascripts/bbclonemail/**/*.js',
+ ],
+ helpers : 'spec/javascripts/helpers/*.js',
+ specs : 'spec/javascripts/**/*.spec.js'
+ },
+
+ 'jasmine-server' : {
+ browser : false
+ },
+
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'concat min');
+
+};

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 611d086

Please sign in to comment.