GithubHelp home page GithubHelp logo

ku-polls's Introduction

ku-polls

Unittest codecov

A web application for polls and survey at Kasetsart University

Online Polls And Surveys

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.

Install and Run

first clone this repository by use this command

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

go to project directory

cd ku-polls

Start the virtual environment.

  • on macos and linux
source env/bin/activate 
  • on windows
. env/bin/activate

make sure that you install all the requirements by run this command, its can be whether pip, pip3

pip install -r requirements.txt

you have to create file name .env file template looks like sample.env you can modify value and copy it into .env

Create .env and write.

SECRET_KEY = secret-key-value-without-quotes 
DEBUG = False
TIME_ZONE = Asia/Bangkok

Create a new database by running migrations the database.

python3 manage.py migrate

Import and Export the database.

Import the database python3 manage.py loaddata.

python3 manage.py loaddata data/polls.json data/users.json

Export the database python3 manage.py dumpdata (Optional). Try dump all polls data to a file (-o) named polls.json

python3 manage.py dumpdata --indent=2 -o polls.json polls

In this time you can run server by use command

python manage.py runserver

but you have python3 use command

python3 manage.py runserver

next you go to http://127.0.0.1:8000/ or localhost:8000/ for application.

Project Documents

All project documents are in the Project Wiki

  1. Wiki Home
  2. Vision statement
  3. Requirements
  4. Project Plan
  5. Iteration Plan
  1. Task Borad

Running KU Polls

Users provided by the initial data

Username Password
demo1 demopass1
demo2 demopass2

ku-polls's People

Contributors

reviseuc73 avatar

Watchers

 avatar

ku-polls's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.