1.0.4 • Published 1 month ago

brisk v1.0.4

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
1 month ago

Brisk

An MVC framework for Node.js, built on top of Express. Brisk omits most of the platform-specific conventions and returns application development to a more traditional object-oriented structure. Inspired by Backbone.js and using lessons learnt from developing KISSCMS.

At its core it uses a modified version of John Resig’s simple class. This provides class level inheritance and callbacks.

Features

  • Auto-routing
  • Slim express configuration
  • OO architecture
  • Clean app folder

Install

Using npm:

npm install brisk

Usage

When initializing Brisk the express app is passed as a site module.

var brisk = require("brisk"),
  express = require("express");

var modules = {
  app : express()
};

// initialize
brisk.init( modules );

In addition, a number of other modules may be passed that are necessary for the site to function.

For example, modules may also include: db, server, sessions...

Folder structure

Following best practices, the expected folder structure is enforcing seperation of concerns using an MVC architecture and looks something like this:

app
 |_ controllers
 |_ helpers
 |_ models
 |_ views
config
 |_ brisk.js
  • controllers define the routes for the site
  • helpers contains helper routines referenced in controllers
  • models describe the data structures
  • views hosts a set of html fragments, used to generate the output of the site

The config folder may contain more configuration files, as required, but the config/brisk.js will be seeked out to overwrite the default configuration.

Configuration

The config folder should contain all the site configuration.

Each helper may require their own config file, manually used & independent of brisk, but there are two config files that brisk will automatically try to load:

brisk

This is the default configuration of the site, overwriting the config/default.js values in the node module

express

This cofiguration file is dedicated to configuring express, which is a core component of Brisk.

Credits

Initiated by Makis Tracend (@tracend)

Distributed through Makesites.org

Released under the Apache License, v2.0

1.0.4

1 month ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.0

5 years ago

0.9.2

5 years ago

0.9.1

9 years ago

0.9.0

9 years ago

0.8.8

9 years ago

0.8.7

9 years ago

0.8.6

9 years ago

0.8.5

10 years ago

0.8.4

10 years ago

0.8.3

10 years ago

0.8.2

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

11 years ago

0.5.0

11 years ago

0.4.5

11 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago