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.
python== 3.5 or up , django==2.0 or up and Docker-compose== 1.29.2
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
sudo docker-compose run web python manage.py makemigrations
sudo docker-compose run web python manage.py migrate
sudo docker-compose run web python manage.py createsuperuser
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