edenjs-core
Web Application Framework built on Express.js, Redis and Mongorito
Last updated 3 years ago by edencoder .
(MIT OR Apache-2.0) · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install edenjs-core 
SYNC missed versions from official npm registry.

EdenJS

bitHound Overall Score issues dependencies license Awesome

Awesome isomorphic NodeJS skeleton for structured applications. Just take a look at its bundles.

Why

There are many very good Node/Express/Mongo frameworks around. There is no true "correct" way of build your applications skeleton, what EdenJS tries to do is give you a boilerplate bootstrap/express/mongoDB base for large bundled NodeJS applications.

Features

  • Based on ES6 async/await
  • Out of the box MVC structured development environment
  • Established expressJS application base that you're already used to
  • Fully real time with socketio
  • Extremely fast isomorphic rendering with riotJS
  • Extensible models with mongorito

Quick Development

// use strict
'use strict';

// require local dependencies
var alert      = require ('alert');
var controller = require ('controller');

/**
 * build example controller
 */
class example extends controller {
  /**
   * get index action
   *
   * @route {get} /
   */
  indexAction (req, res, next) {
    // the same as router.get ('/', example.indexAction)
    // uses standard expressJS router
    // SSR with riotJS
    res.render ('home');

    // alert user
    alert.user (req.user, 'success', 'successfully loaded index');
  }

  /**
   * socketio event emit
   *
   * @socket event
   */
  eventSocket (Socket, data, User) {
    // out of the box socket transport with authentication

    // emit directly
    Socket.emit ('data', {});

    // alert socket
    alert.socket (Socket, 'success', 'successfully received event');
  }
}

/**
 * export example controller
 * @type {example}
 */
module.exports = example;

Installation

The entire framework has been written to be built and compiled with gulp. To install and run the boilerplate is as simple as:

// deploy EdenJS
git init; git remote add origin https://github.com/eden-js/eden.git; git pull;

// development
npm install; gulp;

// install (for production)
gulp install;

// run in production
node app;

Current Tags

  • 0.1.0-alpha.4                                ...           latest (3 years ago)

1 Versions

  • 0.1.0-alpha.4                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (72)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |