node-std

0.1.0 • Public • Published

node-std

The idea of this library is to provide you with all the essential building blocks you need to get your node on. Extensive. Consistent. Structured. Modular. Grab what you need; ignore the rest.

Like it? Don't like it? It's all about picking your poison.

Included libraries:

  1. core - Essentials. Mixin your way to victory!
  2. blog
  3. cms
  4. database - We all need some persistency in our lives.
  5. debug - Write to me.
  6. forum
  7. framework - MVC? HMVC? MVVM? Your choice.
  8. site - Startup.
  9. wiki
  10. game
  11. ...more!

Installation

  1. Run this command: npm install std. If you don't have NPM installed, you can get it here or download manually STD here.
  2. Done!

Usage

var std = require('std').std;

var blog = std('import blog');

var p1 = blog.post();
p1.title = 'Hello world!';
p1.save();

Custom modules

  1. Install STD if you haven't already.
  2. Create modules directory for your module.
  3. Create my_module directory.
  4. Add a __init__.js package file to your module directory.
  5. Add any exports to your package file that you may want to be accessible.
  6. You're ready to create your module's structure.

Add your modules to STD's importer:

var std = require('std').std;
std.add_path('./modules');

var my_module = std('import my_module');

Important

The API is still under construction, and may experience highly volatile changes.

Contribute

You can find STD in the src directory, which is CoffeeScript compiled down to JavaScript in the lib directory.

Command to watch and compile CoffeeScript:

  1. cd node-std
  2. coffee -wc -o lib src

Standard

Naming Convention

All code is to be lower-case using underscores for logical separation. Everything is lower-cased and underscored: variables, functions, classes, directories, files, event names, table names, and so on. We are aware JavaScript, and by consequence Node.js is traditionally pascal/camel case. Sorry.

Unit Testing

You can find existing unit tests in the test directory.

Projects using STD

Nether

Credits

Major thanks to the CoffeeScript team.

Uses the following Node modules: backbone, underscore, connect, socket.io, node.js, mongoose, haml, less

Draws inspiration from the following projects: Boost, OGRE, haXe, Rails, Zend, Doctrine, jQuery, php.js, MaNGOS, as well as Phpr, C#.NET

Readme

Keywords

none

Package Sidebar

Install

npm i node-std

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • ericmuyser