Blame view

README.rst 1.77 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


7fac5932   Sergio Oliveira   Update README.rst
13
What is Colab?
390d38d0   Sergio Oliveira   Added coveralls b...
14
15
16
==============

Application that integrates existing systems to represent the contributions of the members through:
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
* 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
========

7fac5932   Sergio Oliveira   Update README.rst
31
32
* Developed by Interlegis Communities http://colab.interlegis.leg.br/

f33958d8   Leonardo J. Caballero G   Added information...
33
34
35
* Written in Python http://python.org/

* Built with Django Web Framework https://www.djangoproject.com/
2d227d8d   Marco   Fix english gramm...
36

f33958d8   Leonardo J. Caballero G   Added information...
37
* Search engine with Solr https://lucene.apache.org/solr/
7fac5932   Sergio Oliveira   Update README.rst
38

f33958d8   Leonardo J. Caballero G   Added information...
39

7fac5932   Sergio Oliveira   Update README.rst
40

f33958d8   Leonardo J. Caballero G   Added information...
41
42
43
Installation
============

0625388d   seocam   Entrega de numero...
44
First install the dependencies and than the project it self:
0625388d   seocam   Entrega de numero...
45

7fac5932   Sergio Oliveira   Update README.rst
46
47
.. code-block::

0625388d   seocam   Entrega de numero...
48
  pip install -r requirements.txt
7fac5932   Sergio Oliveira   Update README.rst
49
  pip install .
0625388d   seocam   Entrega de numero...
50

cd257248   Sergio Oliveira   Update README.rst
51

0625388d   seocam   Entrega de numero...
52

77fd4a8f   Lucas Kanashiro   Update developmen...
53
54
55
56
57
58
59
60
61
62
63
64
Running Colab
=============

To run Colab with development server you will have to:

1- Create the example configuration file:

.. code-block::

  colab-init-config > /etc/colab/settings.yaml
  
2- Edit the configuration file. Make sure you set everything you need including **database** credentials.
cd257248   Sergio Oliveira   Update README.rst
65
  
cd257248   Sergio Oliveira   Update README.rst
66
3- Run the development server: 
0625388d   seocam   Entrega de numero...
67

cd257248   Sergio Oliveira   Update README.rst
68
.. code-block::
7fac5932   Sergio Oliveira   Update README.rst
69

0625388d   seocam   Entrega de numero...
70
  colab-admin runserver 0.0.0.0:8000
7fac5932   Sergio Oliveira   Update README.rst
71

cd257248   Sergio Oliveira   Update README.rst
72

77fd4a8f   Lucas Kanashiro   Update developmen...
73
**NOTE**: In case you want to keep the configuration file else where just set the 
0625388d   seocam   Entrega de numero...
74
desired location in environment variable **COLAB_SETTINGS**.
cd257248   Sergio Oliveira   Update README.rst
75

0625388d   seocam   Entrega de numero...
76
About test
77fd4a8f   Lucas Kanashiro   Update developmen...
77
==========
0625388d   seocam   Entrega de numero...
78

77fd4a8f   Lucas Kanashiro   Update developmen...
79
80
81
82
83
How to write a tests.
--------------------
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. 
 
7fac5932   Sergio Oliveira   Update README.rst
84
85
How to run a test
-----------------
cd257248   Sergio Oliveira   Update README.rst
86
87
88

Follow the steps below:

7fac5932   Sergio Oliveira   Update README.rst
89
* Go to vagrant/colab/
cd257248   Sergio Oliveira   Update README.rst
90
* Install the test dependencies with `pip install -r requirements_test.txt`
77fd4a8f   Lucas Kanashiro   Update developmen...
91
* run: ./runtests.sh
cd257248   Sergio Oliveira   Update README.rst

7fac5932   Sergio Oliveira   Update README.rst

2abd70b8   Rodrigo Siqueira de Melo   Create the test e...

844166cc   Sergio Oliveira   flake8 checks and...

2abd70b8   Rodrigo Siqueira de Melo   Create the test e...

77fd4a8f   Lucas Kanashiro   Update developmen...

2abd70b8   Rodrigo Siqueira de Melo   Create the test e...

844166cc   Sergio Oliveira   flake8 checks and...

2abd70b8   Rodrigo Siqueira de Melo   Create the test e...

77fd4a8f   Lucas Kanashiro   Update developmen...