Coder Social home page Coder Social logo

alex-2015 / node-plates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewkeig/node-plates

0.0 2.0 0.0 1.18 MB

a node.js boilerplate using express, socket.io, mongooose, jquery.mobile & html 5 mobile/web application.

JavaScript 96.86% CSS 2.99% Shell 0.15%

node-plates's Introduction

node-plates

a node.js boilerplate using express, socket.io, mongooose, jquery.mobile & html 5 mobile/web application.

Installation

$ npm install node-plates

Usage

$ node server.js
$ node server.js -m  use jquery mobile
$ node server.js -w, use website html 5 boilerplate
$ node server.js -c, use client side templating
$ node server.js -s, use server side templating
$ node server.js -a, display article content
$ node server.js -x, use external storage for sessions/registrations/articles using mongoDb

Dependencies

Requires mongoDb via mongoose in order to use the scale option -x

Run mongodb before starting node-plates using the following; where some_data_path is your path to a mongoDb instance data folder. Will throw an 'error connecting to database' if not running..

$ mongod --dbpath some_data_path

Current setup includes

  • Environment cascading configuration files using konphyg
  • Environment based module load
  • Express; with some best practices in place such as:
  • [Error handling with error middleware]
  • [Routes seperated into modules and exported]
  • [Content Negotiation]
  • Route middleware
  • Express production configuration
  • Configuring session stores using konphyg for:
  • In memory
  • Mongo
  • Redis
  • Couch
  • Memcache
  • Supporting multiple view engines using consolidate.js
  • Templating using dust.js
  • Server side templating using dust.js
  • Client side templating using dust.js; with pre-compilation or client side compilation
  • JQuery Mobile template
  • Html5 boilerplate template
  • Using Backbone.js for cleaner javascript
  • Socket.io
  • Socket.io handshake with express using configurable sessions
  • Socket.io production configuration
  • Forms authentication via SSL TLS for secure login/my account pages
  • In/out of process storage
  • scale article content, registrations and sessions using mongoDb
  • will default to using NStore; an in process key/value store for article content, registrations and sessions

node-plates's People

Contributors

andrewkeig avatar

Watchers

James Cloos avatar Alex Davis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.