# edenjs-core

> Web Application Framework built on Express.js, Redis and Mongorito

Latest version **0.1.0-alpha.4** (published 2017-06-02) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install edenjs-core
pnpm add edenjs-core
yarn add edenjs-core
bun add edenjs-core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-alpha.4 |
| Published | 2017-06-02 |
| First published | 2017-06-02 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 7.0.0 |
| Dependencies | 72 |
| Known vulnerabilities | 0 (+42 in 6 direct dependencies) |
| Install scripts | no |
| GitHub stars | 25 |
| Author | EdenCoder |
| Maintainers | edencoder |

## Links

- npm: https://www.npmjs.com/package/edenjs-core
- Repository: https://github.com/eden-js/eden
- Homepage: https://edenjs.com/
- Issues: https://github.com/eden-js/eden/issues
- npm.io page: https://npm.io/package/edenjs-core

## Dependencies (72)

- [del](https://npm.io/package/del.md) ^2.2.2
- [chai](https://npm.io/package/chai.md) ^4.0.1
- [glob](https://npm.io/package/glob.md) ^7.1.2
- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [riot](https://npm.io/package/riot.md) ^3.5.1
- [mocha](https://npm.io/package/mocha.md) ^3.4.2
- [nconf](https://npm.io/package/nconf.md) ^0.8.4
- [redis](https://npm.io/package/redis.md) ^2.7.1
- [sharp](https://npm.io/package/sharp.md) ^0.18.1
- [assert](https://npm.io/package/assert.md) ^1.4.1
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [crypto](https://npm.io/package/crypto.md) ^0.0.3
- [jquery](https://npm.io/package/jquery.md) ^3.2.1
- [multer](https://npm.io/package/multer.md) ^1.3.0
- [tether](https://npm.io/package/tether.md) ^1.4.0
- [express](https://npm.io/package/express.md) ^4.15.3
- [history](https://npm.io/package/history.md) ^4.6.1
- [i18next](https://npm.io/package/i18next.md) ^8.4.0
- [nanobar](https://npm.io/package/nanobar.md) ^0.4.2
- [winston](https://npm.io/package/winston.md) ^2.3.1
- [babelify](https://npm.io/package/babelify.md) ^7.3.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^3.0.1
- [glob-all](https://npm.io/package/glob-all.md) ^3.1.0
- [passport](https://npm.io/package/passport.md) ^0.3.2
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.0.0-alpha.6
- [chai-http](https://npm.io/package/chai-http.md) ^3.0.0
- [extendify](https://npm.io/package/extendify.md) ^1.0.0
- [gulp-riot](https://npm.io/package/gulp-riot.md) ^1.1.1
- [gulp-sass](https://npm.io/package/gulp-sass.md) ^3.1.0
- [mongorito](https://npm.io/package/mongorito.md) ^3.0.1
- [socket.io](https://npm.io/package/socket.io.md) ^2.0.1
- [browserify](https://npm.io/package/browserify.md) ^14.4.0
- [gulp-watch](https://npm.io/package/gulp-watch.md) ^4.3.11
- [nodemailer](https://npm.io/package/nodemailer.md) ^4.0.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.17.2
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.1.11
- [gulp-concat](https://npm.io/package/gulp-concat.md) ^2.6.1
- [gulp-header](https://npm.io/package/gulp-header.md) ^1.8.8
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^3.0.0
- [riotcontrol](https://npm.io/package/riotcontrol.md) ^0.0.3
- [html-to-text](https://npm.io/package/html-to-text.md) ^3.3.0
- [pretty-error](https://npm.io/package/pretty-error.md) ^2.1.0
- [run-sequence](https://npm.io/package/run-sequence.md) ^1.2.2
- [vinyl-buffer](https://npm.io/package/vinyl-buffer.md) ^1.0.0
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^2.0.3
- [connect-redis](https://npm.io/package/connect-redis.md) ^3.3.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [response-time](https://npm.io/package/response-time.md) ^2.3.2
- [cacheman-redis](https://npm.io/package/cacheman-redis.md) ^1.1.2
- [comment-parser](https://npm.io/package/comment-parser.md) ^0.4.0
- [parse-comments](https://npm.io/package/parse-comments.md) ^0.4.3
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0
- [app-module-path](https://npm.io/package/app-module-path.md) ^2.2.0
- [express-session](https://npm.io/package/express-session.md) ^1.15.3
- [gulp-sourcemaps](https://npm.io/package/gulp-sourcemaps.md) ^2.6.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.5.1
- [promise-polyfill](https://npm.io/package/promise-polyfill.md) ^6.0.2
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.0.1
- [passport.socketio](https://npm.io/package/passport.socketio.md) ^3.7.0
- [redis-eventemitter](https://npm.io/package/redis-eventemitter.md) ^2.0.1
- [gulp-develop-server](https://npm.io/package/gulp-develop-server.md) ^0.5.2
- [i18next-xhr-backend](https://npm.io/package/i18next-xhr-backend.md) ^1.4.1
- [vinyl-source-stream](https://npm.io/package/vinyl-source-stream.md) ^1.1.0
- [mongorito-timestamps](https://npm.io/package/mongorito-timestamps.md) ^1.0.0
- [i18next-node-fs-backend](https://npm.io/package/i18next-node-fs-backend.md) ^1.0.0
- [i18next-express-middleware](https://npm.io/package/i18next-express-middleware.md) ^1.0.5
- [i18next-localstorage-cache](https://npm.io/package/i18next-localstorage-cache.md) ^1.1.1
- [i18next-sprintf-postprocessor](https://npm.io/package/i18next-sprintf-postprocessor.md) ^0.2.2
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) ^6.23.0
- [i18next-browser-languagedetector](https://npm.io/package/i18next-browser-languagedetector.md) ^1.0.1

## Recent versions

- 0.1.0-alpha.4 (latest) — 2017-06-02

## README

# EdenJS

[![bitHound Overall Score](https://www.bithound.io/github/Alex-iFactory/eden/badges/score.svg?style=flat-square)](https://www.bithound.io/github/eden-js/eden)
[![issues](https://img.shields.io/github/issues/eden-js/eden.svg?style=flat-square)](https://github.com/eden-js/eden/issues)
[![dependencies](https://david-dm.org/eden-js/eden.svg?style=flat-square)](https://github.com/eden-js/eden)
[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/eden-js/eden)
[![Awesome](https://img.shields.io/badge/awesome-true-green.svg?style=flat-square)](https://github.com/eden-js/eden)

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](https://github.com/expressjs/express) application base that you're already used to
- Fully real time with [socketio](https://github.com/socketio/socket.io)
- Extremely fast isomorphic rendering with [riotJS](https://github.com/riot/riot)
- Extensible models with [mongorito](https://github.com/vadimdemedes/mongorito)

## Quick Development

```js
// 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;
```

---
_Source: https://npm.io/package/edenjs-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
