Blame view

README.rst 2.48 KB
bc95bfb5   leonardocaballero   Added more sphinx...
1
2
3
4
5
6
7
8
9
10
.. -*- coding: utf-8 -*-

.. highlight:: rest

.. _colab_software:

=================================
Colab, a Software for Communities
=================================

212b6ed7   Sergio Oliveira   Update Readme.rst
11
12
.. image:: https://travis-ci.org/colab/colab.svg?branch=master
    :target: https://travis-ci.org/colab/colab
7fac5932   Sergio Oliveira   Update README.rst
13

390d38d0   Sergio Oliveira   Added coveralls b...
14
15
16
.. image:: https://coveralls.io/repos/colab/colab/badge.png?branch=master
          :target: https://coveralls.io/r/colab/colab?branch=master

7fac5932   Sergio Oliveira   Update README.rst
17

f33958d8   Leonardo J. Caballero G   Added information...
18
19
20
21
22
23
24
25
26
27
28
29
30
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.

7fac5932   Sergio Oliveira   Update README.rst
31
32


f33958d8   Leonardo J. Caballero G   Added information...
33
34
35
Features
========

2d227d8d   Marco   Fix english gramm...
36
* Developed by Interlegis Communities http://colab.interlegis.leg.br/
f33958d8   Leonardo J. Caballero G   Added information...
37

7fac5932   Sergio Oliveira   Update README.rst
38
* Written in Python http://python.org/
f33958d8   Leonardo J. Caballero G   Added information...
39

7fac5932   Sergio Oliveira   Update README.rst
40
* Built with Django Web Framework https://www.djangoproject.com/
f33958d8   Leonardo J. Caballero G   Added information...
41
42
43

* Search engine with Solr https://lucene.apache.org/solr/

0625388d   seocam   Entrega de numero...
44

0625388d   seocam   Entrega de numero...
45

7fac5932   Sergio Oliveira   Update README.rst
46
47
Installation
============
0625388d   seocam   Entrega de numero...
48

7fac5932   Sergio Oliveira   Update README.rst
49
First install the dependencies and than the project it self:
0625388d   seocam   Entrega de numero...
50

cd257248   Sergio Oliveira   Update README.rst
51
.. code-block::
0625388d   seocam   Entrega de numero...
52

77fd4a8f   Lucas Kanashiro   Update developmen...
53
54
55
56
57
58
59
60
61
62
63
64
  pip install -e .

Development environment
-----------------------

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

.. code-block::

  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.
cd257248   Sergio Oliveira   Update README.rst
65

cd257248   Sergio Oliveira   Update README.rst
66

0625388d   seocam   Entrega de numero...
67

cd257248   Sergio Oliveira   Update README.rst
68
Running Colab
7fac5932   Sergio Oliveira   Update README.rst
69
=============
0625388d   seocam   Entrega de numero...
70

7fac5932   Sergio Oliveira   Update README.rst
71
To run Colab with development server you will have to:
cd257248   Sergio Oliveira   Update README.rst
72

77fd4a8f   Lucas Kanashiro   Update developmen...
73
1- Log in virtual machine:
0625388d   seocam   Entrega de numero...
74

cd257248   Sergio Oliveira   Update README.rst
75
.. code-block::
0625388d   seocam   Entrega de numero...
76

77fd4a8f   Lucas Kanashiro   Update developmen...
77
  vagrant ssh
0625388d   seocam   Entrega de numero...
78
  
77fd4a8f   Lucas Kanashiro   Update developmen...
79
80
81
82
83
2- Use colab virtualenv:

.. code-block::

  workon colab
7fac5932   Sergio Oliveira   Update README.rst
84
85
  
3- Run the development server: 
cd257248   Sergio Oliveira   Update README.rst
86
87
88

.. code-block::

7fac5932   Sergio Oliveira   Update README.rst
89
  colab-admin runserver 0.0.0.0:8000
cd257248   Sergio Oliveira   Update README.rst
90

77fd4a8f   Lucas Kanashiro   Update developmen...
91
Now you can access colab in your browser via http://localhost:8000
cd257248   Sergio Oliveira   Update README.rst
92

7fac5932   Sergio Oliveira   Update README.rst
93
94
**NOTE**: In case you want to keep the configuration file else where just set the 
desired location in environment variable **COLAB_SETTINGS**.
2abd70b8   Rodrigo Siqueira de Melo   Create the test e...
95
96
97
98

About test
==========

844166cc   Sergio Oliveira   flake8 checks and...
99
How to write a test
2abd70b8   Rodrigo Siqueira de Melo   Create the test e...
100
101
--------------------
Inside of each folder on /vagrant/colab/<folder> you can create a folder called
77fd4a8f   Lucas Kanashiro   Update developmen...
102
"tests" and inside of it implements the code for test each file. Remember that you should create __init__.py file.
2abd70b8   Rodrigo Siqueira de Melo   Create the test e...
103
 
844166cc   Sergio Oliveira   flake8 checks and...
104
105
How to run the tests
--------------------
2abd70b8   Rodrigo Siqueira de Melo   Create the test e...
106
107
108

Follow the steps below:

77fd4a8f   Lucas Kanashiro   Update developmen...
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
1- Log in virtual machine:

.. code-block::

  vagrant ssh

2- Use colab virtualenv:

.. code-block::

  workon colab

3- Enter into colab source code directory:

.. code-block::

  cd /vagrant

4- Run tests with setup.py:

.. code-block::

  python setup.py test