onepiecejs / nodejs-cantas

Cantas is a real-time collaborative web application. Official repository
Other
203 stars 88 forks source link

Cantas

Cantas is a real-time collaborative Web application built upon Node.js and Socket.IO.

Build Status

Thanks for all Contributors

project screenshot

Getting started

Demo Site - Deployed on OpenShift

http://cantas-onepiecejs.rhcloud.com/

Login with your Google account.

Deploy to OpenShift.

rhc domain create <yournamespace>
rhc app create cantas nodejs-0.10 -s
cd cantas/
rhc cartridge add mongodb-2.4 -a cantas
rhc cartridge add "http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-redis-cart" -a cantas
git remote add upstream -m master git@github.com:onepiecejs/nodejs-cantas.git
git pull -s recursive -X theirs upstream master
git push
rhc env set NODE_ENV=production -a cantas
# Caution: please input your variabes in .openshift/lib/init_settings
rhc app restart -a cantas

Note: Openshift instructions need updating Please update your settings value in .openshift/lib/init_settings before push to Openshift Online service.

Setup development environment with one-click.

Installing Vagrant with your package manager,

sudo yum install vagrant

Then run the up command in the root of the project's directory,

vagrant up

Note: If you are on Fedora 22, you will need to install the "libvirt" lib's to run Vagrant from the "vagrantfile" supplied in the root of the Cantas app directory. dnf install libvirt vagrant-libvirt

Setup development environment manually.

Note: If you got g++: command not found while installing nodejs, you can install it by sudo yum install gcc-c++.

Note: If you plan to use Kerberos authentication install the relevant kerberos libraries for your distro.

sudo yum install -y krb5-devel krb5-libs krb5-workstation

Note: Make sure the mongod deamon is running before starting the app. To enable Google signin you will need to create a Client ID in the Google Developer Console.

That's it. Open your browser at http://localhost:3000 and log into Cantas.

Resources

Integration && Test Environment

Dependencies

Template engine