|
|
@@ -1,13 +1,36 @@ |
|
|
|
# Consulta |
|
|
|
|
|
|
|
 |
|
|
|
### Preface |
|
|
|
*Consulta* is a project in the context of a bachelor's assignment at the University of Duisburg-Essen. The objective of this project is to create a basic implementation of a polling tool for use in lectures or presentations. |
|
|
|
*Consulta* is a project in the context of a bachelor's assignment at the University of Duisburg-Essen. The objective of this project is to create a basic implementation of a polling tool for embedded use in presentations. |
|
|
|
|
|
|
|
*Consulta* is built with [Django](https://www.djangoproject.com/), a Python Web Framework. |
|
|
|
|
|
|
|
**Notice**: You will find documents related to this project such as a PowerPoint presentation and written report in */Misc*. Conceptual wireframes can be found in */Wireframing* |
|
|
|
|
|
|
|
### Features |
|
|
|
- User Management (superuser, anonymous user, registered user) |
|
|
|
- Permission System |
|
|
|
- Deployment via Docker |
|
|
|
- Poll Editor (`http://$HOST/editor`) |
|
|
|
- Sharing via QR Code (`http://$HOST/polls/$POLL_NAME/share`) |
|
|
|
- Poll Stats via [Chart.js](https://www.chartjs.org/) (`dir: /Consulta_project/polls/js/stats.js`) |
|
|
|
- Minimal REST API (`http://$HOST/api`) via [Django REST Framework](https://www.django-rest-framework.org/) |
|
|
|
- Embeddable into Apple Keynote, Microsoft Powerpoint via [LiveSlides](http://liveslides.com) Chromium WebView |
|
|
|
- Routes for toggling Poll being locked (incl. browser redirect) |
|
|
|
|
|
|
|
Here is a wireframe of the Landing Page: |
|
|
|
### Local Setup |
|
|
|
Requirements: |
|
|
|
- [Docker](https://www.docker.com/) & [Docker-Compose](https://docs.docker.com/compose/) |
|
|
|
|
|
|
|
 |
|
|
|
Setup: |
|
|
|
- `docker-compose up` |
|
|
|
|
|
|
|
### Installation (Dev) |
|
|
|
- execute in order: "install django_env.sh", "set_dev-env.sh", "start_dev-env.sh" |
|
|
|
- These commands will install the environment, set the Django Environment Variable to Dev Settings |
|
|
|
and start the local development server |
|
|
|
Usage: |
|
|
|
1. Visit [127.0.0.1](http://127.0.0.1) |
|
|
|
2. Login as user "root" with the password "abc" |
|
|
|
3. Visit the Poll Editor |
|
|
|
4. Create a Poll with a couple of Questions, then click on "Save" |
|
|
|
5. Select "Questions" in the Editor Interface |
|
|
|
6. Add Answers to your Questions, then click "Save" |
|
|
|
7. Click on "View Site" in the upper right corner |
|
|
|
8. Have a look at your created poll |
|
|
|
9. Vote, Share or look at your Poll's stats |