Skip to content

Web application for polls and survey at Kasetsart University.

Notifications You must be signed in to change notification settings

kwangsensei/KU-Polls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 

Repository files navigation

Online Polls And Surveys For KU

Unittest codecov

An application for conducting online polls and surveys based on the Django Tutorial project, with additional features.

App created as part of the Individual Software Process course at Kasetsart University.

How To Install

  1. Python 3.9 or higher is required.

  2. Clone this GitHub repository. Or run this command:

git clone https://github.com/KwangSensei/ku-polls.git
  1. Locate the file directory.

  2. Change filename sample.env to .env and adjust values as the instruction say.

  3. Run command below to create virtual environment.

# create the virtual env in "env/", only 1 time
python -m venv env

# start the virtual env in bash or zsh
. env\Scripts\activate
  1. Run command below to install required packages.
pip install -r requirements.txt

Running The App

  1. Run migrations by fellow command:
python manage.py migrate
  1. If you wish to use data from data fixtures, please run command:
python manage.py loaddata polls\data_fixtures\polls.json
  1. Start the server by run:
python manage.py runserver
  1. Then follow the link http://localhost:8000 to web application.

  2. To create admin account:

python manage.py createsuperuser

# enter your username, email, password and password confirmation, in this case
Username: admin
Email address: admin@example.com
Password: **********
Password (again): *********
Superuser created successfully.
  • Note: You can create new users, questions and choices in /admin page.

Project Documents

All project documents are in the Project Wiki.

About

Web application for polls and survey at Kasetsart University.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published