Skip to content

logv/superfluous

Repository files navigation

superfluous

superfluous is a web framework built in node.js. it serves apps & components to browsers and simplifies how the server & client communicate in the modern app environment.

Build Status NPM version

Quick Start

0) get it running

install node (0.10-0.12)

# get the code and dependencies for superfluous
npm install -g superfluous
superfluous create my_first_app

cd my_first_app
npm install
vim package.json # edit your app name here

# start the server with the dev environment for
# localhost
ENV=localhost nodemon app.js

# visit http://localhost:3300

# get hacking
vim app/controllers/home/server.js

Fundamentals

Everything needed to build your own app!

  • Controllers
  • Components
  • Templates

See the guide locally or online

Extra Features!

  • pipelined page generation
  • transparently marshalled components
  • per request globals, aka request local storage
  • socket setup & authorization
  • server or client side rendering

ORM Not Included

built on

default app comes with

Deploying To Heroku

  1. create an app (heroku apps:create my_todo_app, for example)
  2. set environment variables on heroku for the app:
  3. heroku config:add MONGOHQ\_URL=mongodb://user:pwd@host:port/db (you can use mongohq addon to get a mongo db instance)
  4. heroku config:add ENV=heroku
  5. heroku config:add HTTPHOST=my_todo_app.herokuapp.com (or whatever you use)
  6. push everything under the superfluous directory (in particular the Procfile) to your heroku git repo. If you have git subtree, use: git subtree push --prefix superfluous heroku master

Hacking on the core

# install node (>= 0.8) and mongo-db
git clone superfluous.git

# get the code and dependencies for superfluous
cd superfluous/superfluous
npm install

ENV=localhost nodemon app.js

# start hacking in core/
vim superfluous/core/server/main.js

About

a node.js app & component server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •