Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An application container using CouchApp and node.js/Express.

tree: 0718ed2da0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 apps
Octocat-spinner-32 bin
Octocat-spinner-32 conf
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 template
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.md

This readme is still underconstruction. Wait a minutes for official release!.


Sunrise

A various application middleware set using CouchApp and node.js/Express. This package is developed for CouchDB-JP web site, but it can be available for various community/personal sites.

Requirements

  • CouchDB 1.0.1 above
  • node.js 0.3.X
  • npm 0.2.3.6

Install

$ git clone git://github.com/couchdb-jp/sunrise
$ cd sunrise
$ npm install .

Create Site

To host a sunrise site, you can generate a site application using sunrise:create command.

$ sunrise:create /path/to/your/site

Then you can launch boot.js to

$ node /path/to/your/site/boot.js

By default, following configurations are used.

  • admin/password for CouchDB authentication
  • 0.0.0.0:8888 for the container server.

Go to http://{your_host}:8888/ to see your site.

Modify Your Site

Sunrise site can install or customize by node script. See /path/to/your/site/node/handler.js, which is an endpoint of the container.

For more details, please check source code and documentations in official repository.

Test (for developers)

Before you launch test script, you need to install expresso package using npm.

$ expresso -I lib test/test.*

or you can check coverage:

$ expresso -I lib --cov test/test.*

Available Applicaitons

  • posts
  • chat (TBD)
  • wiki (TBD)
  • file uploader (TBD)
  • realtime chat (TBD)
  • ....

Licesnse

MIT license

Something went wrong with that request. Please try again.