Skip to content

Web application for polls and survey at Kasetsart University.

Notifications You must be signed in to change notification settings

inwpolol/ku-polls

Repository files navigation

Online Polls for Kasetsart University

Github workflow codecov

An application for conducting a poll or survey, written in Python using Django. It is based on the Django Tutorial project, with additional functionality.

This application is part of the Individual Software Process course at Kasetsart University.

How to Install and Run

  1. Clone this github repository.
  2. Change file mysite/sample.env to mysite/.env
  3. Create a virtual environment.
  • create the virtual env in "env/", only 1 time.
    python -m venv env
    
  • start the virtual env in bash or zsh.
    . env/bin/activate
    
  • install required packages.
    pip install -r requirements.txt
    
  1. Run migrations.

    python manage.py migrate
    
  2. Install data from the data fixtures.

    python manage.py loaddata data/polls.json data/users.json
    
  3. Run server.

    python manage.py runserver
    
  4. Open web application on http://localhost:8000/polls/ or control+click at suggestion url http://127.0.0.1:8000/

Note: You can create admin account to manage your polls by

python manage.py createsuperuser

and go to http://localhost:8000/admin

User Demo

Username Password
demo1 testpass1
demo2 testpass2

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

Languages