- Python 3.4 (3.5 seems OK as well)
- Node (0.10.x or higher, there are known issues with 0.10.29)
- Java (1.7 or higher)
- gettext (0.18 or higher)
- virtualenv (1.7 or higher)
- Redis 2.8
- GEOS (3.4 or higher)
On Debian/Ubuntu systems the required components may be installed using
sudo apt-get install virtualenv python3-dev nodejs-legacy npm openjdk-7-jdk gettext libgeos-dev redis-server
On Ubuntu 16.04, openjdk-7-jdk
is no longer available but can be replaced by openjdk-8-jdk
.
git clone https://github.com/c2corg/v6_ui.git
cd v6_ui
make -f config/{user} install
make -f config/{user} serve
Open your browser at http://localhost:6543/ or http://localhost:6543/?debug (debug mode). Make sure you are
using the port that is set in config/{user}
.
Available actions may be listed using:
make help
make -f config/{user} test
Or with the check
target, which runs flake8
and test
:
make -f config/{user} check
To run a specific test:
.build/venv/bin/nosetests c2corg_ui/tests/views/test_summit.py
To see the debug output:
.build/venv/bin/nosetests -s
Captcha configuration is done through https://www.google.com/recaptcha/admin . The public key is used in the UI. The corresponding secret key is used in the API.
To get information about a running UI instance, e.g. its version and the
status of its components, the health service /health
can be used:
GET http://localhost:6543/health
The UI is mainly built using the following components:
- Pyramid (Python framework) http://docs.pylonsproject.org/en/latest/
- AngularJS (Javascript framework) https://angularjs.org/
- Maps:
- OpenLayers 3 http://openlayers.org/
- ngeo https://github.com/camptocamp/ngeo