Skip to content

Cantas is a real-time collaborative web application. Official repository

License

Notifications You must be signed in to change notification settings

cdkr/nodejs-cantas

 
 

Repository files navigation

Cantas

Cantas is a real-time collaborative web application.This is a side project, used as internal productivity tool in Red Hat.

This we believe, is a great open source project for learning HTML5/Nodejs/socket.io/backbone.js technology.

Build Status

Thanks for all Contributors

project screenshot

Update news

Current stable: v1.0

###new features:

  1. support login with google account.
  2. add mycards panels to home page.
  3. support cards filter.

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: Please update your settings value in .openshift/lib/init_settings before push to Openshift Online service.

Setup development environment

  • rpm requirements:

    sudo yum install -y krb5-devel krb5-libs krb5-workstation
  • install Nodejs, npm, MongoDB, Redis.

    # nodejs & npm
    wget http://nodejs.org/dist/v0.10.22/node-v0.10.22.tar.gz
    tar -xvf node-v0.10.22.tar.gz
    cd node-v0.10.22
    ./configure && make
    sudo make install
    # mongo
    sudo yum install mongodb mongodb-server
    # redis
    sudo yum install redis

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

  • checkout source code and update node packages via npm

    git clone git@github.com:onepiecejs/nodejs-cantas.git
    cd nodejs-cantas
    npm install
  • start redis server and mongodb server

    # if you have installed them as services, do
    sudo systemctl start redis
    sudo systemctl start mongod
    # or
    sudo service redis start
    sudo service mongod start
    # otherwise,
    redis-server &
    && mongod --dbpath=/tmp &
  • start the app

    # update settings values
    cp settings.json.example settings.json
    
    # setup initalize data
    node scripts/db_init_label_metadata.js
    
    # start the app
    NODE_ENV=development node app.js

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.

Resources

Integration && Test Environment

Dependencies

Template engine

About

cantas is a real-time collaborative application similar to Trello.

About

Cantas is a real-time collaborative web application. Official repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published