2013-10-20 02:04:27 +02:00
|
|
|
============
|
|
|
|
OpenSlides
|
|
|
|
============
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
What is OpenSlides?
|
|
|
|
===================
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
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.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Requirements
|
|
|
|
============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2018-06-06 13:15:33 +02:00
|
|
|
The OpenSlides server runs everywhere where Python is running (for example on
|
|
|
|
GNU/Linux, Mac or Windows). For the OpenSlides client a current webbrowser is required.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Installation
|
|
|
|
============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
1. Installation on GNU/Linux or Mac OS X
|
|
|
|
----------------------------------------
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
a. Check requirements
|
|
|
|
'''''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2018-08-22 22:00:08 +02:00
|
|
|
Make sure that you have installed `Python (>= 3.6) <https://www.python.org/>`_
|
2018-06-06 13:15:33 +02:00
|
|
|
on your system.
|
|
|
|
|
|
|
|
Additional you need build-essential packages, header files and a static
|
|
|
|
library for Python and also the pyvenv-3 binary package for python3.
|
|
|
|
|
|
|
|
E.g. run on Debian/Ubuntu::
|
|
|
|
|
|
|
|
$ sudo apt-get install build-essential python3-dev python3-venv
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
b. Setup a virtual Python environment (optional)
|
|
|
|
''''''''''''''''''''''''''''''''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
You can setup a virtual Python environment using the virtual environment
|
|
|
|
(venv) package for Python to install OpenSlides as non-root user.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2017-03-07 14:57:48 +01:00
|
|
|
Create your OpenSlides directory and change to it::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ mkdir OpenSlides
|
|
|
|
$ cd OpenSlides
|
2017-03-07 14:57:48 +01:00
|
|
|
|
|
|
|
Setup and activate the virtual environment::
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ python3 -m venv .virtualenv
|
|
|
|
$ source .virtualenv/bin/activate
|
2017-03-07 14:57:48 +01:00
|
|
|
$ pip install --upgrade setuptools pip
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
c. Install OpenSlides
|
|
|
|
'''''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
To install OpenSlides just run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ pip install openslides
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2018-06-06 13:15:33 +02:00
|
|
|
This installs the latest stable version. To install a specific (beta)
|
|
|
|
version use ``openslides==x.y``.
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
You can also use the package from the `OpenSlides website
|
|
|
|
<https://openslides.org/>`_. Download latest OpenSlides release as
|
|
|
|
compressed tar archive and run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2018-06-06 13:15:33 +02:00
|
|
|
$ pip install openslides-x.y.tar.gz
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
This will install all required Python packages (see
|
2018-08-25 13:52:43 +02:00
|
|
|
``requirements/production.txt``).
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
d. Start OpenSlides
|
|
|
|
'''''''''''''''''''
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
To start OpenSlides simply run::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ openslides
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
If you run this command the first time, a new database and the admin account
|
2017-03-07 14:57:48 +01:00
|
|
|
(Username: ``admin``, Password: ``admin``) will be created. Please change the
|
2016-05-29 08:29:14 +02:00
|
|
|
password after first login!
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
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).
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
If you use a virtual environment (see step b.), do not forget to activate
|
2016-10-26 14:54:01 +02:00
|
|
|
the environment before restart after you closed the terminal::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
$ source .virtualenv/bin/activate
|
|
|
|
|
|
|
|
To get help on the command line options run::
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
$ openslides --help
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-02-27 18:27:03 +01:00
|
|
|
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::
|
|
|
|
|
2016-10-26 14:54:01 +02:00
|
|
|
$ openslides start --local-installation
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
2. Installation on Windows
|
|
|
|
--------------------------
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Download the latest portable version of OpenSlides for Windows from
|
|
|
|
`OpenSlides website <https://openslides.org/>`_ which does not require any
|
|
|
|
install steps. Simply unzip the downloaded file and run ``openslides.exe``.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2019-09-02 11:09:03 +02:00
|
|
|
Configuration
|
|
|
|
=============
|
|
|
|
|
|
|
|
Please consider reading the `OpenSlides configuration
|
|
|
|
<https://github.com/OpenSlides/OpenSlides/blob/master/SETTINGS.rst>`_ page to
|
|
|
|
find out about all configurations, especially when using OpenSlides for big
|
|
|
|
assemblies.
|
|
|
|
|
|
|
|
|
2018-11-22 10:46:40 +01:00
|
|
|
Using the Dockerfile
|
2019-09-02 11:09:03 +02:00
|
|
|
====================
|
2018-11-22 10:46:40 +01:00
|
|
|
|
|
|
|
You can either pull the image ``openslides/openslides`` or build it yourself
|
|
|
|
(via `docker build -t openslides/openslides .`). You have all prequistes installed
|
|
|
|
it to start a quick server. To see how it should be used to setup an
|
|
|
|
production environment, see `openslides-docker
|
|
|
|
<https://github.com/OpenSlides/openslides-docker>`_.
|
|
|
|
|
|
|
|
You can start a quick-setup (not for production purposes, only local testing) with:
|
|
|
|
|
|
|
|
$ docker run -v /path/to/save/something:/app/personal_data -p 4200:4200 openslides/openslides /bin/bash -c "python manage.py createsettings && python manage.py migrate && (python manage.py runserver & (cd client && npm start))"
|
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Development
|
|
|
|
===========
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
If you want to contribute to OpenSlides, have a look at `OpenSlides website
|
|
|
|
<https://openslides.org/>`_ and write us an email. There is also an
|
|
|
|
`instruction to install the development version
|
|
|
|
<https://github.com/OpenSlides/OpenSlides/blob/master/DEVELOPMENT.rst>`_.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
Installation for big assemblies
|
|
|
|
===============================
|
|
|
|
|
2017-03-07 14:57:48 +01:00
|
|
|
The installation steps described above install OpenSlides in a way that
|
|
|
|
does NOT support hundreds of concurrent clients. To install OpenSlides for
|
|
|
|
big assemblies some variables have to be changed in the OpenSlides settings
|
2016-12-27 11:18:23 +01:00
|
|
|
file (usually called settings.py).
|
2016-05-29 08:29:14 +02:00
|
|
|
|
2016-08-24 08:21:38 +02:00
|
|
|
The configuration values that have to be altered are:
|
2016-05-29 08:29:14 +02:00
|
|
|
|
|
|
|
* CHANNEL_LAYERS
|
|
|
|
* DATABASES
|
2017-03-07 14:57:48 +01:00
|
|
|
* SESSION_ENGINE
|
2018-08-22 05:56:05 +02:00
|
|
|
* REDIS_ADDRESS
|
2016-05-29 08:29:14 +02:00
|
|
|
|
2017-03-07 14:57:48 +01:00
|
|
|
You should use a webserver like Apache HTTP Server or nginx to serve the
|
|
|
|
static and media files as proxy server in front of your OpenSlides
|
|
|
|
interface server. You also should use a database like PostgreSQL and Redis
|
|
|
|
as channels backend, cache backend and session engine. Finally you should
|
2018-08-22 05:56:05 +02:00
|
|
|
use gunicorn with uvicorn as interface server.
|
2016-08-24 08:21:38 +02:00
|
|
|
|
2017-03-07 14:57:48 +01:00
|
|
|
Please see the respective section in the `DEVELOPMENT.rst
|
|
|
|
<https://github.com/OpenSlides/OpenSlides/blob/master/DEVELOPMENT.rst>`_ and:
|
|
|
|
|
|
|
|
* https://channels.readthedocs.io/en/latest/deploying.html
|
2016-05-29 08:29:14 +02:00
|
|
|
* https://github.com/sebleier/django-redis-cache
|
2016-12-16 22:11:51 +01:00
|
|
|
* https://docs.djangoproject.com/en/1.10/ref/settings/#databases
|
2016-05-29 08:29:14 +02:00
|
|
|
|
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
Used software
|
|
|
|
=============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
|
|
|
OpenSlides uses the following projects or parts of them:
|
|
|
|
|
2018-08-25 13:52:43 +02:00
|
|
|
* Several Python packages (see ``requirements/production.txt`` and ``requirements/big_mode.txt``).
|
2016-12-16 22:11:51 +01:00
|
|
|
|
2018-10-13 08:41:51 +02:00
|
|
|
* Several JavaScript packages (see ``client/package.json``)
|
2015-12-07 20:48:50 +01:00
|
|
|
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
License and authors
|
|
|
|
===================
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2016-04-07 01:32:09 +02:00
|
|
|
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.
|