Coder Social home page Coder Social logo

pollsystem's Introduction

#Engagement Polling System

Build Status

###Objective To create a system where users may easily create polls which engage users in deep thinking about issues and measures where priorities lie in regard to those issues.

###Stack #####Backend Stack

  • RESTful API written in Python 2.7 with Flask
  • Persistence in PostgreSQL
  • Deployment on Heroku
  • Integration testing with Travis

#####Installation

git clone https://github.com/xbs13/PollSystem
cd PollSystem
pip install -r requirements.txt

#####Running

chmod a+x run.py
./run.py
# or
python run.py

#####Creation of DB Management system

chmod a+x db_
./db_.py
# or
python db_.py

#####Testing

nosetests

###Models and Relationships*

Schema Design v2
  • token needs no longer has is_upperbound or is_lowerbound, and now has an int value.

###EndPoints /api/user(?offset=0&limit=0)

  • GET - Retrieves all users starting from the record at offset + 1, only taking to limit
  • POST - Creates a new user

/api/user/

  • GET - Retrieves the information for user with id userid
  • PUT - Updates the user's information
  • DELETE - Deletes the user

/api/polls(?offset=0&limit=0)

  • GET - Retrieves all polls starting from the record at offset + 1, only taking o limit
  • POST - Creates a new poll

/api/polls/

  • GET - Retrieve the information for poll with id pollid
  • PUT - Update the poll's information
  • DELETE - Deletes the Poll

/api/polls//tokens

  • GET - Get all the tokens for poll of pollid
  • POST - Creates a new token for poll of pollid

/api/polls//questions

  • GET - Get all the questions for poll of pollid
  • POST - Creates a new question for poll of pollid

/api/questions(?offset=0&limit=0)

  • GET - Retrieves all questions starting from the record at offset + 1, only taking to limit

/api/questions/

  • GET - Retrieves the information for user with id questionid
  • PUT - Updates the question's information
  • DELETE - Deletes the question

/api/questions//effects

  • GET - Get all the effects for question of questionid
  • POST - Creates a new effect for question of questionid

/api/effects(?offset=0&limit=0)

  • GET - Retrieves all effects starting from the record at offset + 1, only taking to limit

/api/effects/

  • GET - Retrieves the information for effect with id effectid
  • PUT - Updates the effect information
  • DELETE - Deletes the effect

/api/tokens(?offset=0&limit=0)

  • GET - Retrieves all tokens starting from the record at offset + 1, only taking to limit

/api/tokens/

  • GET - Retrieves the information for token with id tokenid
  • PUT - Updates the token's information
  • DELETE - Deletes the token

pollsystem's People

Contributors

puhrez avatar

Watchers

 avatar  avatar

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.