2.0.0 • Published 12 years ago

symfio v2.0.0

Weekly downloads
95
License
-
Repository
github
Last release
12 years ago

Symfio

Symfio

Modular framework based on Node.js and kantaina.

Example

symfio = require "symfio"

# create container
container = symfio "fruits-example", __dirname

# define own plugin
fruitsPlugin = (model, get) ->
  model "Fruit", "fruits", (mongoose) ->
    new mongoose.Schema
      name: String

  get "/fruits", (Fruit) ->
    (req, res) ->
      Fruit.findOne (err, fruit) ->
        return res.send 500 if err
        return res.send 404 unless fruit
        res.send fruit

# load plugins
container.injectAll([
  require "symfio-contrib-winston"
  require "symfio-contrib-express"
  require "symfio-contrib-mongoose"
  fruitsPlugin
]).then ->
  container.get "listener"
.then (listener) ->
  listener.listen()

Quick Start

Use grunt-init-symfio to bootstrap your first Symfio project.

Project Status

Build Status Dependency Status

Tests

If you haven't already done so, install grunt.

Once grunt is installed, clone Symfio repository and run tests:

git clone git://github.com/symfio/symfio.git
cd symfio
npm test
2.0.8

12 years ago

2.0.7

12 years ago

2.0.6

12 years ago

2.0.5

12 years ago

2.0.4

12 years ago

2.0.3

12 years ago

2.0.2

12 years ago

2.0.1

12 years ago

2.0.0

12 years ago

2.0.0-beta.2

12 years ago

2.0.0-beta.1

12 years ago

2.0.0-beta

12 years ago

2.0.0-alpha

12 years ago

1.0.2

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago

0.6.0

12 years ago

0.5.0

12 years ago

0.4.4

12 years ago

0.4.3

12 years ago

0.4.2

12 years ago

0.4.1

12 years ago

0.4.0

12 years ago