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
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
OpenSlides is a free, web-based presentation and assembly system for
|
2020-08-14 15:21:35 +02:00
|
|
|
managing and projecting agenda, motions, and elections of assemblies. See
|
2019-09-12 23:29:54 +02:00
|
|
|
https://openslides.com for more information.
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
|
2019-09-12 23:29:54 +02:00
|
|
|
Installation
|
2016-04-07 01:32:09 +02:00
|
|
|
============
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
The main deployment method is using Git, Docker and Docker Compose. You only need
|
|
|
|
to have these tools installed and no further dependencies. If you want a simpler
|
2020-08-14 15:21:35 +02:00
|
|
|
setup or are interested in developing, please refer to `development
|
2021-02-05 09:55:54 +01:00
|
|
|
instructions <DEVELOPMENT.rst>`_.
|
|
|
|
|
|
|
|
Get OpenSlides
|
|
|
|
--------------
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2020-06-18 15:22:38 +02:00
|
|
|
First, you have to clone this repository::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
git clone https://github.com/OpenSlides/OpenSlides.git --recurse-submodules
|
2021-02-05 09:55:54 +01:00
|
|
|
cd OpenSlides/
|
2021-01-15 08:05:49 +01:00
|
|
|
|
|
|
|
**Note about migrating from version 3.3 or earlier**: With OpenSlides 3.4 submodules
|
|
|
|
and a Docker setup were introduced. If you ran into problems try to delete your
|
|
|
|
``settings.py``. If you have an old checkout you need to check out the current master
|
|
|
|
first and initialize all submodules::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
git submodule update --init
|
2020-05-28 11:40:41 +02:00
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
Setup Docker images
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
You need to build the Docker images for the client and server and have to setup some
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
First go to ``docker`` subdirectory::
|
|
|
|
|
|
|
|
cd docker
|
|
|
|
|
|
|
|
Then build all images with this script::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
./build.sh all
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2020-08-14 15:21:31 +02:00
|
|
|
You must define a Django secret key in ``secrets/django.env``, for example::
|
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
printf "DJANGO_SECRET_KEY='%s'\n" \
|
2020-08-14 15:21:31 +02:00
|
|
|
"$(tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 64)" > secrets/django.env
|
|
|
|
|
2020-08-14 15:21:35 +02:00
|
|
|
We also strongly recommend that you set a secure admin password but it is not
|
2021-02-05 09:55:54 +01:00
|
|
|
strictly required. If you do not set an admin password, the default login
|
|
|
|
credentials will be displayed on the login page. Setting the admin password::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
cp secrets/adminsecret.env.example secrets/adminsecret.env
|
|
|
|
vi secrets/adminsecret.env
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2020-08-14 15:21:35 +02:00
|
|
|
Afterwards, generate the configuration file::
|
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
m4 docker-compose.yml.m4 > docker-compose.yml
|
2020-08-14 15:21:35 +02:00
|
|
|
|
2020-08-14 16:21:21 +02:00
|
|
|
Finally, you can start the instance using ``docker-compose``::
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
docker-compose up
|
2021-02-05 09:55:54 +01:00
|
|
|
|
|
|
|
OpenSlides runs on https://localhost:8000/.
|
|
|
|
|
|
|
|
Use can also use daemonized instance::
|
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
docker-compose up -d
|
|
|
|
docker-compose logs
|
|
|
|
docker-compose down
|
2013-10-20 02:04:27 +02:00
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
|
2020-10-28 08:34:43 +01:00
|
|
|
More settings
|
|
|
|
-------------
|
|
|
|
|
|
|
|
When generating the ``docker-compose.yml``, more settings can be adjusted in the
|
|
|
|
``docker/.env`` file. All changes for the backend are passed into djangos ``settings.py``.
|
2021-02-05 09:55:54 +01:00
|
|
|
You can find more information about most settings in the `settings documentation
|
|
|
|
<server/SETTINGS.rst>`_. To generate the ``docker-compose.yml`` use this command::
|
2020-10-28 08:34:43 +01:00
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
cd docker
|
|
|
|
( set -a; source .env; m4 docker-compose.yml.m4 ) > docker-compose.yml
|
2020-08-15 14:19:12 +02:00
|
|
|
|
2021-01-15 08:05:49 +01:00
|
|
|
For an advanced database setup refer to the `advanced configuration
|
|
|
|
<ADVANCED.rst>`_.
|
2020-08-15 14:19:12 +02:00
|
|
|
|
2021-02-05 09:55:54 +01:00
|
|
|
|
2020-06-18 15:22:38 +02:00
|
|
|
Bugs, features and development
|
|
|
|
================================
|
2016-05-29 08:29:14 +02:00
|
|
|
|
2020-08-14 15:21:35 +02:00
|
|
|
Feel free to open issues here on GitHub! Please use the right templates for
|
2021-02-05 09:55:54 +01:00
|
|
|
bugs and features, and use them correctly. Pull requests are also welcome. For
|
2020-08-14 15:21:35 +02:00
|
|
|
a general overview of the development setup refer the `development instructions
|
2021-01-15 08:05:49 +01:00
|
|
|
<DEVELOPMENT.rst>`_.
|
|
|
|
|
|
|
|
For security relevant issues **do not** create public issues and refer to
|
|
|
|
our `security policy <SECURITY.md>`_.
|
2016-05-29 08:29:14 +02:00
|
|
|
|
2021-02-05 09:55:54 +01: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:
|
|
|
|
|
2021-02-04 17:57:01 +01:00
|
|
|
* several Python packages (see ``server/requirements/production.txt``)
|
2016-12-16 22:11:51 +01:00
|
|
|
|
2020-08-14 15:21:35 +02:00
|
|
|
* several JavaScript packages (see ``client/package.json``)
|
2015-12-07 20:48:50 +01:00
|
|
|
|
2021-02-05 09:55:54 +01: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.
|