Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Modular framework based on Node.js and kantaina.
CoffeeScript Shell

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
Gruntfile.coffee
LICENSE
README.md
package.json
release.sh

README.md

Symfio

Symfio

Modular framework based on Node.js and kantaina.

Build Status Coverage Status Dependency Status NPM version

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 "startExpressServer"
.then (startExpressServer) ->
  startExpressServer()

Quick Start

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

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
Something went wrong with that request. Please try again.