Git Product home page Git Product logo

animu's Introduction

HEPPA

HEPPA: hyvin edistynyt perjantaipiirretty applikaatio. Web-app that allows approval voting (with veto), intended for selecting the Gurula friday cartoon. Started as a database application project over winter break 2018-2019.

App in production

Installation Instructions

Local Setup

Make sure that you have these dependencies installed on your machine:

  • Python 3 and its dev packages
  • Python 3 venv
  • PostgreSQL and its dev packages (may also work without)

On Debian/Ubuntu

sudo apt install python3-dev python3-venv postgresql libpq-dev

Run these in the root directory to launch the app at

> python3 -m venv venv
> source venv/bin/activate
> pip install -r requirements.txt
> python3 run.py

You can then open the app in your browser at http://127.0.0.1:5000/

Docker Setup

Install Docker and add your user to the docker group.

Run this command to build the docker image

docker build -t heppa .

This command will then start the application in docker

docker run --rm -p 8000:8000 heppa

You can then open the app in your browser at http://127.0.0.1:8000/

Production docker setup

Install Docker and Docker Compose.

Define POSTGRES_PASSWORD env variable.

Run this command to start the app

docker compose up

It should now be available at http://127.0.0.1:8000/

Heroku Setup

Simply make sure the application name in the command below is unique

heroku create example-heppa

You should then be able to open the app in <example-heppa>.herokuapp.com

If you've forked this on GitHub, you may want to use Heroku's GitHub integration.

User Instructions

NB: this application is not secure in any way. Any user can log in with your username.

Before voting, you need to register an account.

After registering, you can add candidates and vote on them. The electoral system is approval voting with the addition of an unrestricted veto right for everyone. Voting is not anonymous so that the veto cannot be abused.

Documentation

animu's People

Contributors

oaarne avatar concernedhobbit avatar tuupertunut avatar merghq avatar xylix avatar hojott avatar dependabot[bot] avatar oatcookies 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.