Code Monkey home page Code Monkey logo

rest

Colab, a Software for Communities

image

image

What is Colab?

Application that integrates existing systems to represent the contributions of the members through:

  • The amendments to the Wiki trac system.
  • Changes to the trac system code.
  • Discussions at the mailman list.
  • And other systems in the community.

Features

Installation

First install the dependencies and than the project it self:

pip install -e .

Development environment

You must install vagrant to set up the development environment. With vagrant available you should run:

vagrant up

During the process you should choose the vagrant box that you want to use. In the end you should have a virtual machine with development environment set up.

Running Colab

To run Colab with development server you will have to:

1- Log in virtual machine:

vagrant ssh

2- Use colab virtualenv:

workon colab

3- Run the development server:

colab-admin runserver 0.0.0.0:8000

Now you can access colab in your browser via http://localhost:8000

NOTE: In case you want to keep the configuration file else where just set the desired location in environment variable COLAB_SETTINGS.

About test

How to write a test

Inside of each folder on /vagrant/colab/<folder> you can create a folder called "tests" and inside of it implements the code for test each file. Remember that you should create __init__.py file.

How to run the tests

Follow the steps below:

1- Log in virtual machine:

vagrant ssh

2- Use colab virtualenv:

workon colab

3- Enter into colab source code directory:

cd /vagrant

4- Run tests with setup.py:

python setup.py test

How to run Acceptance Tests

Follow the steps below to run the acceptance tests.

1- Log in virtual machine:

1.1 - To run without opening a graphic interface

vagrant ssh

1.2 - To run opening a graphic interface

vagrant ssh -- -X

2- Use colab virtualenv:

workon colab

3- Enter into colab source code directory:

cd /vagrant

4- Run all the acceptance tests with:

COLAB_SETTINGS=tests/colab_settings.py colab-admin behave

4.1 To run without opening a browser: .. code-block:

COLAB_SETTINGS=tests/colab_settings.py xvfb-run -a colab-admin behave 

4.2 To run a specific feature:

COLAB_SETTINGS=tests/colab_settings.py colab-admin behave /path/to/features/file.feature

Colab Community's Projects

colab icon colab

Ambiente Colaborativo para Comunidades

django-revproxy icon django-revproxy

Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.