============
OpenSlides
============
What is OpenSlides?
===================
OpenSlides is a free, web based presentation and assembly system for
managing and projecting agenda, motions and elections of an assembly. See
https://openslides.org/ for more information.
Requirements
============
OpenSlides runs everywhere where Python is running (for example on
GNU/Linux, Mac or Windows (XP or newer)). On each client you need only a
current version of a webbrowser.
Installation
============
1. Installation on GNU/Linux or Mac OS X
----------------------------------------
a. Check requirements
'''''''''''''''''''''
Make sure that you have installed `Python (>= 3.4)
`_ on your system. You also need the Python
development headers, the Independent JPEG Group's JPEG runtime library
(dependency package) and the compression library (development).
\E. g. for Ubuntu run::
$ sudo apt-get install python3-dev libjpeg-dev zlib1g-dev
b. Setup a virtual Python environment (optional)
''''''''''''''''''''''''''''''''''''''''''''''''
You can setup a virtual Python environment using the virtual environment
(venv) package for Python to install OpenSlides as non-root user.
*Note: For Ubuntu 14.04 you have to install the pyvenv binary package*
``python3.4-venv`` *before.*
Create your OpenSlides directory, change to it, setup and activate the
virtual environment::
$ mkdir OpenSlides
$ cd OpenSlides
$ python3 -m venv .virtualenv
$ source .virtualenv/bin/activate
c. Install OpenSlides
'''''''''''''''''''''
To install OpenSlides just run::
$ pip install openslides
You can also use the package from the `OpenSlides website
`_. Download latest OpenSlides release as
compressed tar archive and run::
$ pip install openslides-x.x.tar.gz
This will install all required Python packages (see
``requirements_production.txt``).
d. Start OpenSlides
'''''''''''''''''''
To start OpenSlides simply run::
$ openslides
If you run this command the first time, a new database and the admin account
(Username: `admin`, Password: `admin`) will be created. Please change the
password after first login!
OpenSlides will start a webserver. It will also try to open the webinterface in
your default webbrowser. The server will try to listen on the local ip address
on port 8000. That means that the server will be available to everyone on your
local network (at least for commonly used network configurations).
If you use a virtual environment (see step b.), do not forget to activate
the environment before restart after you have closed the terminal::
$ source .virtualenv/bin/activate
To get help on the command line options run::
$ openslides --help
You can store settings, database and other personal files in a local
subdirectory and use these files e. g. if you want to run multiple
instances of OpenSlides::
$ openslides --local-installation
2. Installation on Windows
--------------------------
Download the latest portable version of OpenSlides for Windows from
`OpenSlides website `_ which does not require any
install steps. Simply unzip the downloaded file and run ``openslides.exe``.
Development
===========
If you want to contribute to OpenSlides, have a look at `OpenSlides website
`_ and write us an email. There is also an
`instruction to install the development version
`_.
Installation for big assemblies
===============================
The installation steps described above install OpenSlides in a way that does
NOT support hundreds of concurrent clients. To install OpenSlides in for big
assemblies some config variables have to be changed in the OpenSlides settings
usualy called settings.py.
The configuration values that have to be altered are:
* CACHES
* CHANNEL_LAYERS
* DATABASES
Please see:
* http://channels.readthedocs.io/en/latest/deploying.html
* https://docs.djangoproject.com/en/1.9/topics/cache/
* https://github.com/sebleier/django-redis-cache
* https://docs.djangoproject.com/en/1.9/ref/settings/#databases
You should use a webserver like Apache HTTP Server or nginx to serve the static
and media files as proxy server in front of OpenSlides server. You also
should use a database like PostgreSQL and Redis as channels backend and cache
backend.
Used software
=============
OpenSlides uses the following projects or parts of them:
* `backports-abc `_,
License: Python Software Foundation License
* `Beautiful Soup `_,
License: MIT
* `Django `_, License: BSD
* `Django REST framework `_, License:
BSD
* `html5lib `_, License: MIT
* `Django Channels `_, License: MIT
* `django-jsonfield `_,
License: MIT
* `natsort `_, License: MIT
* `PyPDF2 `_, License: BSD
* `ReportLab `_,
License: BSD
* `roman `_, License: Python 2.1.1
* `setuptools `_,
License: Python Software Foundation License
* `Six `_, License: MIT
* `Whoosh `_, License: BSD
* Several JavaScript packages (see ``bower.json``)
* `angular `_, License: MIT
* `angular-animate `_, License: MIT
* `angular-bootstrap `_, License: MIT
* `angular-bootstrap-colorpicker `_, License: MIT
* `angular-chosen-localytics `_, License: MIT
* `angular-csv-import `_, License: MIT
* `angular-formly `_, License: MIT
* `angular-formly-templates-bootstrap `_, License: MIT
* `angular-gettext `_, License: MIT
* `angular-loading-bar `_, License: MIT
* `angular-messages `_, License: MIT
* `pdfmake `_, License: MIT
* `angular-pdf `_, License: MIT
* `angular-sanitize `_, License: MIT
* `angular-scroll-glue `_, License: MIT
* `angular-ui-router `_, License: MIT
* `angular-ui-tinymce `_, License: MIT
* `angular-ui-tree `_, License: MIT
* `api-check `_, License: MIT
* `bootstrap `_, License: MIT
* `chosen `_, License: MIT
* `font-awesome-bower `_, License: MIT
* `jquery `_, License: MIT
* `jquery.cookie `_, License: MIT
* `js-data `_, License: MIT
* `js-data-angular `_, License: MIT
* `js-data-http `_, License: MIT
* `lodash `_, License: MIT
* `ng-dialog `_, License: MIT
* `ng-file-upload `_, License: MIT
* `ngbootbox `_, License: MIT
* `open-sans-fontface `_, License: Apache License version 2.0
* `pdfjs-dist `_, License: Apache-2.0
* `roboto-condensed `_, License: Apache 2.0
* `tinymce `_, License: LGPL-2.1
* `tinymce-i18n `_, License: LGPL-2.1
License and authors
===================
OpenSlides is Free/Libre Open Source Software (FLOSS), and distributed
under the MIT License, see ``LICENSE`` file. The authors of OpenSlides are
mentioned in the ``AUTHORS`` file.