Skip to content
CodeCosmos.com
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
www
.bowerrc
.gitignore
.jshintrc
Gruntfile.js
LICENSE
README.md
THANKS
bower.json
package.json

README.md

CodeCosmos - Coding for the classroom

CodeCosmos is a browser-based programming environment for classroom use.

HACKING

Build distribution of codecosmos:

$ npm install

Run a local couchdb with the couchperuser plugin installed. CORS headers should be enabled (see http://pouchdb.com/getting-started.html).

export HOST="http://username:password@127.0.0.1:5984"
curl -X PUT "$HOST/_config/httpd/enable_cors" -d '"true"'
curl -X PUT "$HOST/_config/cors/origins" -d '"*"'
curl -X PUT "$HOST/_config/cors/credentials" -d '"true"'
curl -X PUT "$HOST/_config/cors/methods" -d '"GET,PUT,POST,HEAD,DELETE,OPTIONS"'
curl -X PUT "$HOST/_config/cors/headers" -d \
  '"accept,authorization,content-type,origin,x-requested-with"'

Develop in-place (recommended to avoid appcache issues):

$ (cd www; python -mSimpleHTTPServer)
Something went wrong with that request. Please try again.