Skip to content

A web application that builds a social coding platform upon CMS

License

Notifications You must be signed in to change notification settings

NOI-SL/cmsocial

 
 

Repository files navigation

CMSocial

A web application that builds a social coding platform upon CMS.

This repository aims to be the successor of oii-web, by cleaning up the codebase and by using a saner dependency model. Since right now this is in alpha stage, you may want to refer to the old repository in the meantime.

Installing cmsocial

Run make to build the web application (make ONLINE=1 if you don't need local copies of the used libraries). Then run python2 ./setup.py install as root.

Create a configuration file config/cmsocial.ini (you can find an example in config/cmsocial.ini.sample) and install it by running cp config/cmsocial.ini /usr/local/etc/cmsocial.ini as root.

Add service PracticeWebServer to /usr/local/etc/cms.conf in core_services section.

Database creation instructions

Creating the database is somewhat difficult. Here are the needed steps (after installing both cms and cmsocial):

cmsInitDB
python2 -c "import cmsocial.db; from cms.db import metadata; metadata.create_all()"
psql cmsdb -U cmsuser < sql_scripts/create_triggers.sql

Update for multicontest

Run the following: python2 -c "import cmsocial.db; from cms.db import metadata; metadata.create_all()" psql cmsdb -U cmsuser < sql_updaters/multicontest_update.sql An analog procedure works for other updates. Note: update scripts consist of a transaction ending with ROLLBACK - to actually run the script, you should change that to COMMIT.

About

A web application that builds a social coding platform upon CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 44.7%
  • JavaScript 28.2%
  • HTML 16.4%
  • PLpgSQL 6.1%
  • Less 2.6%
  • Shell 0.9%
  • Other 1.1%