olaurendeau / v6_ui

UI for c2c.org v6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI Application for camptocamp.org v6

Requirements

  • 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.

Checkout

git clone https://github.com/c2corg/v6_ui.git

Build

cd v6_ui
make -f config/{user} install

Run the application

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

Run the tests

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

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.

Health service

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

Developer Tips

The UI is mainly built using the following components:

About

UI for c2c.org v6

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 45.7%Language:HTML 37.5%Language:Python 8.6%Language:CSS 7.2%Language:Makefile 0.8%Language:Shell 0.2%