Skip to content

aliibii/LetsVote

Repository files navigation

Dockerized Polling App with Django

You have to register in this app to show the polls and to vote. If you already voted you can not vote again. Only the owner of a poll can add poll , edit poll, update poll, delete poll , add choice, update choice, delete choice and end a poll. If a poll is ended it can not be voted. Ended poll only shows user the final result of the poll. There is a search option for polls. Also user can filter polls by name, publish date, and by number of voted.

Prerequisites

python== 3.5 or up , django==2.0 or up and Docker-compose== 1.29.2

Installation

open terminal and type
git clone https://github.com/aliibii/LetsVote.git

and then run the following in the directory to run the app on port 80 (you can change it in docker-compose.yml):

sudo docker-compose up --build -d

To migrate the database type

sudo docker-compose run web python manage.py makemigrations

sudo docker-compose run web python manage.py migrate

To use admin panel you need to create superuser using this command

sudo docker-compose run web python manage.py createsuperuser

To Create some dummy text data for your app follow the step below :

just on your local host for testing the app, if you're going to run it on docker-compose then you need to update the requirments.txt file and the Dockerfile.yml

pip install faker

python manage.py shell

import seeder

seeder.seed_all(30)

Here 30 is a number of entry. You can use it as your own

About

Full featured polling app with Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages