Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graficas #30

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f0e19c8
Primer commit
pabfrasan Nov 3, 2020
8ca5c87
local_settings subido
pabfrasan Nov 4, 2020
27483fd
Update .travis.yml
pabfrasan Nov 11, 2020
7c48db0
Update .travis.yml
pabfrasan Nov 11, 2020
2783fc1
Update .travis.yml
pabfrasan Nov 11, 2020
ad8a86f
Un cambio en el README
pabfrasan Nov 12, 2020
3b7e21b
Un cambio en el README
AbrahamSFC Nov 12, 2020
4847ff9
Docker actualizado
pabfrasan Nov 24, 2020
2c2960f
Heroku: añadido el Procfile
pabfrasan Dec 10, 2020
e5cbb96
Configuracion Heroku
pabfrasan Dec 10, 2020
d144f14
Configuracion Heroku
pabfrasan Dec 10, 2020
06d68f2
Configuracion Heroku
pabfrasan Dec 10, 2020
63e0044
Configuracion Heroku
pabfrasan Dec 10, 2020
ef8247f
Delete local_settings.py
pabfrasan Dec 10, 2020
db74e05
Cambios de configuración. local_settings.py eliminado, cada usuario d…
pabfrasan Dec 10, 2020
00a0fe3
Update .travis.yml
pabfrasan Dec 17, 2020
c6f8323
Update .travis.yml
pabfrasan Dec 17, 2020
db02351
Update .travis.yml
pabfrasan Dec 17, 2020
2474db5
Update .travis.yml
pabfrasan Dec 17, 2020
4a1ffb0
Update .travis.yml
pabfrasan Dec 17, 2020
0e652f2
Merge pull request #1 from pabfrasan/patch-1
pabfrasan Dec 17, 2020
ffad0fe
Update .travis.yml
pabfrasan Dec 17, 2020
838c812
travis_local_settings.py creado y .travis.yml actualizado
pabfrasan Dec 17, 2020
068c22f
Integración de travis con heroku
pabfrasan Dec 17, 2020
78b1e8e
Dark mode and light mode implements
Dec 19, 2020
9e2ecc0
Floating action button implement
Dec 19, 2020
42e5f55
Primera gráfica (donut)
davsotpon Dec 19, 2020
d899f6c
Merge branch 'developVisualizer' into Graficas
davsotpon Dec 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>decide</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
32 changes: 19 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
dist: xenial

services:
- postgresql
- postgresql
addons:
postgresql: "9.4"
postgresql: '9.4'
before_script:
- psql -U postgres -c "create user decide password 'decide'"
- psql -U postgres -c "create database test_decide owner decide"
- psql -U postgres -c "ALTER USER decide CREATEDB"
- psql -U postgres -c "create user decide password 'decide'"
- psql -U postgres -c "create database decidedb owner decide"
- psql -U postgres -c "ALTER USER decide CREATEDB"
language: python
python:
- "3.6"
- '3.6'
install:
- pip install -r requirements.txt
- pip install codacy-coverage
- pip install -r requirements.txt
- pip install codacy-coverage
script:
- cd decide
- coverage run --branch --source=. ./manage.py test --keepdb --with-xunit
- coverage xml
- python-codacy-coverage -r coverage.xml
- cd decide
- cp travis_local_settings.py local_settings.py
- coverage run --branch --source=. ./manage.py test mixnet --keepdb
- coverage xml
- python-codacy-coverage -r coverage.xml
deploy:
provider: heroku
app: picaro-decide
strategy: git
api_key:
secure: SDt7FSvAfUp9J0aA0vhQGKN7ZUfHvbyX/GMr/gVQmlkobFNWu9Wk8f5O2jzxEcHJfP9DKRPwzK5CF2d422bd/toKXEJldIoZL57YQnomlKElqetaLBoETyydhn/oZkkF+aTv/zZF92m2dQGetTlG6Zp1sqFSW9BwXFKBrMIh9XjqFton6AFDZ5DPCy6Gn9303OAkxtWmqG4EGTEzJ2VV9ambCEMs30ZSeAGn4eVbWC92CvSaef32aOBvKcHKSKIrBkN5Y0olYGHRj00s+tr0iBlVfxKyVb1lI6vwuuh85+8w2UGVXp+NCAEy+Dm1RLz3lhDi3hpIyXK1V9JCqw6arbuNgvB0vHvRuldAj8cw3lmpD9kLlmDfstyw5MJd8UAf22rwsI1nUA6Ga/qycAD1kOIOgPwF6oWLW16M+MOGE/+loZIj4NmQTs3wiYAemqwVqEHc9enViEAaSD2M2zUWPI7L2m9gd2iOll6UleKosqz9f8hQFBLKcaTuaoH5qRHAIPeSVIAZA+GmJhbj9lM++yVhZW5aJ0SVzx+RhGAXcgweVNtUIH8F2DU1Es001zNML90k+G47MpnGqfIHuZcxSVtttLS6raoJIHEQSNUzfwXsy4mBjnUzZvy4YeOf/DId8kb/Wrk0+8P/MOoaDVUEePae7rz4jRcHfHj1UXMPpd0=
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Python3\\python.exe"
}
4 changes: 4 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
% prepara el repositorio para su despliegue.
release: sh -c 'cd decide && python manage.py migrate'
% especifica el comando para lanzar Decide
web: sh -c 'cd decide && gunicorn decide.wsgi --log-file -'
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Build Status](https://travis-ci.com/wadobo/decide.svg?branch=master)](https://travis-ci.com/wadobo/decide) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/94a85eaa0e974c71af6899ea3b0d27e0)](https://www.codacy.com/app/Wadobo/decide?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=wadobo/decide&amp;utm_campaign=Badge_Grade) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/94a85eaa0e974c71af6899ea3b0d27e0)](https://www.codacy.com/app/Wadobo/decide?utm_source=github.com&utm_medium=referral&utm_content=wadobo/decide&utm_campaign=Badge_Coverage)

Prueba:
pabfrasan
abrgarvil
Plataforma voto electrónico educativa
=====================================

Expand Down
6 changes: 4 additions & 2 deletions decide/base/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!DOCTYPE html>
<html>
{% load i18n static %}
<html lang>
<head>
<meta charset="utf-8" />
<title>{% block title %}Decide!{% endblock %}</title>
<title>Decide Pícaro{% block title %}{% endblock %}</title>
<link rel="shortcut icon" type="image/png" href="{% static 'favicon/picaro.png' %}" />
{% block extrahead %}{% endblock %}
</head>
<body>
Expand Down
36 changes: 35 additions & 1 deletion decide/decide/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,19 @@
'voting',
]

BASEURL = 'http://localhost:8000'
BASEURL = 'https://picaro-decide.herokuapp.com'

APIS = {
'authentication': BASEURL ,
'base': BASEURL ,
'booth': BASEURL ,
'census': BASEURL ,
'mixnet': BASEURL ,
'postproc': BASEURL ,
'store': BASEURL ,
'visualizer': BASEURL ,
'voting': BASEURL ,
}

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
Expand Down Expand Up @@ -150,13 +162,32 @@

USE_TZ = True

LOCALE_PATHS = [
os.path.join(BASE_DIR, 'locale')
]


TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = ''
STATIC_TMP = os.path.join(BASE_DIR, 'static')

os.makedirs(STATIC_TMP, exist_ok=True)

STATICFILES_DIRS = (
'static',
)

MEDIA_URL = '/media/'
MEDIA_ROOT = ''

MEDIAFILES_DIRS = (
'media',
)

# number of bits for the key, all auths should use the same number of bits
KEYBITS = 256
Expand All @@ -180,3 +211,6 @@


INSTALLED_APPS = INSTALLED_APPS + MODULES

import django_heroku
django_heroku.settings(locals())
2 changes: 1 addition & 1 deletion decide/postproc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def identity(self, options):
out.append({
**opt,
'postproc': opt['votes'],
});
})

out.sort(key=lambda x: -x['postproc'])
return Response(out)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions decide/static/css/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

.footer {
position: absolute;
bottom: 0;
width: 100%;

background-color: #f5f5f5;
}

Loading