Permalink
Browse files

Initial boilerplate commit...

  • Loading branch information...
1 parent efd02ba commit 1ab26862560b691fdfbf1ae8e397ceb145c7ffb0 @clintandrewhall clintandrewhall committed Aug 28, 2010
View
@@ -0,0 +1,8 @@
+NPM SOURCED:
+
+log4js
+express
+mongodb
+connect-auth
+ + http://wiki.github.com/ciaranj/connect-auth/creating-a-form-based-strategy
+connect-form
View
No changes.
View
@@ -0,0 +1,10 @@
+# node-express-boilerplate
+
+A boilerplate used to quickly get minor projects going. With less configuration.
+
+## Requires
+ npm install connect
+ npm install connect-assetmanager
+ npm install connect-assetmanager-handlers
+ npm install express
+ npm install ejs
View
@@ -0,0 +1,28 @@
+
+SETTING UP
+==========
+
+Install Node Version Manager (NVM):
+ http://github.com/creationix/nvm
+
+Grab the latest version of node:
+ nvm install v0.2.0
+
+Install Node Package Manager (NPM):
+ http://github.com/isaacs/npm
+NOTE: All npm installed packages will be local to your current nvm-installed version of NodeJS.
+
+Install the following packages through npm:
+ npm install connect
+ npm install connect-assetmanager
+ npm install connect-assetmanager-handlers
+ npm install connect-auth
+ npm install connect-form
+ npm install express
+ npm install ejs
+ npm install log4js
+ npm install mongodb
+ npm install oauth
+
+Install MongoDB:
+ http://www.mongodb.org/downloads
View
@@ -0,0 +1,3 @@
+- Update README
+- Update package.json
+- Maintain DEPENDENCIES
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Mathias Pettersson, mape@mape.me
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,15 @@
+{
+ "name" : "node-express-boilerplate",
+ "description" : "A boilerplate used to quickly get minor projects going. With less configuration.",
+ "version" : "0.0.1",
+ "author" : "Mathias Pettersson <mape@mape.me>",
+ "engines" : ["node"],
+ "repository" : { "type":"git", "url":"http://github.com/mape/node-express-boilerplate" },
+ "dependencies" : {
+ "connect" : ">=0.2.4",
+ "connect-assetmanager" : ">=0.0.4",
+ "connect-assetmanager-handlers" : ">=0.0.6",
+ "ejs" : ">=0.2.0",
+ "express" : ">=1.0.0"
+ }
+}
View
@@ -0,0 +1,53 @@
+::-moz-selection {
+ background-color: rgba(0,0,0,0.6);
+}
+
+::selection {
+ background-color: rgba(0,0,0,0.6);
+}
+html
+{
+ gradient: #ddd_#ccc;
+ height: 100%;
+}
+body
+{
+ height: 100%;
+ -vendor-box-sizing: border-box;
+ background: data-url(/img/bg.png);
+ color: #222;
+ margin: 0;
+ font: 12px 'helvetica neue', helvetica, arial, sans-serif;
+ text-rendering: optimizeLegibility;
+}
+a
+{
+ color: #000;
+ text-decoration: none;
+ outline: none;
+}
+a:hover
+{
+ text-decoration: underline;
+}
+h1,h2,h3,h4,h5
+{
+ font-weight: bold;
+ -vendor-text-shadow: 1px 1px 0 rgba(255,255,255,0.8), 0 0 15px rgba(0,0,0,0.4);
+}
+h1
+{
+ font-size: 30px;
+}
+#page-container
+{
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin: -32px 0 0 -330px;
+ border: 1px rgba(255,255,255,0.3) solid;
+ gradient: rgba(255,255,255,1)_rgba(255,255,255,0.1);
+ -vendor-box-shadow: 0px 0px 15px rgba(0,0,0,0.3), 0px 0px 10px rgba(0,0,0,0.2) inset;
+ padding: 12px 15px;
+ -vendor-border-radius: 15px;
+}
View
@@ -0,0 +1,139 @@
+/*
+Copyright (c) 2010, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 2.8.1
+*/
+/**
+ * YUI Reset
+ * @module reset
+ * @namespace
+ * @requires
+ */
+html {
+ color: #000;
+ background: #FFF;
+}
+
+body,
+div,
+dl,
+dt,
+dd,
+ul,
+ol,
+li,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+pre,
+code,
+form,
+fieldset,
+legend,
+input,
+button,
+textarea,
+p,
+blockquote,
+th,
+td {
+ margin: 0;
+ padding: 0;
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+fieldset,
+img {
+ border: 0;
+}
+
+address,
+caption,
+cite,
+code,
+dfn,
+em,
+strong,
+th,
+var,
+optgroup {
+ font-style: inherit;
+ font-weight: inherit;
+}
+
+del,
+ins {
+ text-decoration: none;
+}
+
+li {
+ list-style: none;
+}
+
+caption,
+th {
+ text-align: left;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-size: 100%;
+ font-weight: normal;
+}
+
+q:before,
+q:after {
+ content: '';
+}
+
+abbr,
+acronym {
+ border: 0;
+ font-variant: normal;
+}
+
+sup {
+ vertical-align: baseline;
+}
+
+sub {
+ vertical-align: baseline;
+}
+
+legend {
+ color: #000;
+}
+
+input,
+button,
+textarea,
+select,
+optgroup,
+option {
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-weight: inherit;
+}
+
+input,
+button,
+textarea,
+select {
+ *font-size: 100%;
+}
+
+
+
View
Binary file not shown.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,6 @@
+(function ($) {
+ $('body').removeClass('nojs');
+ setInterval(function () {
+ $('h1').text(new Date().toString());
+ }, 500);
+})(jQuery.noConflict());
Oops, something went wrong. Retry.

0 comments on commit 1ab2686

Please sign in to comment.