Skip to content

kuisskui/ku-polls

Repository files navigation

status codecov

Ku-Polls

Web application for polls and surveys at Kasetsart University, 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

The computer must have Python version 3.9

How to install

clone the https://github.com/kuisskui/ku-polls.git in your directory.

  git clone https://github.com/kuisskui/ku-polls.git ku-polls

go to ku-polls and install the package as a virtual environment following these commands.

  cd ku-polls
  python -m venv venv
  
  (if you are mac)
  source ./venv/bin/activate
  
  (if you are window)
  venv\Scripts\activate
  
  pip install -r requirements.txt
  python manage.py migrate
  python manage.py loaddata data/polls.json data/users.json

last step, get the SECRET_KEY here then open the sample.env file to fill the SECRET_KEY in line two and change that file name to .env

How to run

before you run the server you must activate the virtual environment first(can notice by (venv) in front of the prompt) command to activate the virtual environment

  (if you are mac)
  source ./venv/bin/activate
  
  (if you are window)
  venv\Scripts\activate

then run the server only one command

  python manage.py runserver

Demo account

admin account

admin Username Password
1 admid admin.1234

user account

User Username Password
1 Pikachu Pikachu.2002
2 Raichu Raichu.2002

Project Documents

All project documents are in the Project Wiki

About

Web application for polls and surveys at kasetsart U.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages