Skip to content

alonp/OpenCommunity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing OpenCommunity

Be warned: OpenCommunity is work in progress!!

Prerequisites for Developer Machines

(Quick) Setup

  • Fork the repo and clone it to your computer using git clone

  • cd into the cloned project

  • You will need virtualenv. Either install it or download virtualenv.py from here: https://raw.github.com/pypa/virtualenv/master/virtualenv.py

  • Now create a virtualenv. Use either:

    virtualenv .
    

    Or:

    python virtualenv.py .
    
  • Good! to activate the env use this on OSX or linux:

    source bin/activate
    

    On windows:

    scripts\activate
    
  • Your prompt should start with (OpenCommunity).

  • On windows install some binary packages first:

    windows-install.cmd
    
  • Now install all other requirements (This can take some time):

    pip install -r requirements.txt
    
  • Create a local settings file from the example file. On linux/OSX:

    cp src/ocd/local_settings.py.example src/ocd/local_settings.py
    

    On windows:

    copy src\ocd\local_settings.py.example src\ocd\local_settings.py
    
  • Now create a directory for your sqlite db:

    mkdir db
    
  • It's time to get closer to our code:

    cd src
    
  • ... and create the database:

    python manage.py syncdb
    python manage.py migrate
    

    (When asked, create a user for the admin interface)

  • To start the dev web server:

    python manage.py runserver
    
  • Profit: http://localhost:8000/

Collaborating

  • Setup your git repo to get upstream changes:

    git remote add upstream git://github.com/nonZero/OpenCommunity.git
    git pull upstream master
    
  • Now go and get them:

    git pull upstream master
    pip install -r requirements.txt
    python manage.py syncdb
    python manage.py migrate
    

About

Open Community, by hasadna.org.il

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.2%
  • Python 13.8%