├── .gitignore ├── README.md ├── app.js ├── app ├── .gitignore ├── .meteor │ ├── .finished-upgraders │ ├── .gitignore │ ├── .id │ ├── packages │ ├── platforms │ ├── release │ └── versions ├── client │ ├── main.css │ ├── main.html │ └── main.js ├── package.json └── server │ └── main.js ├── bin └── www ├── modules └── Political │ └── index.js ├── package.json ├── public └── stylesheets │ └── style.css ├── routes ├── index.js └── users.js └── views ├── error.jade ├── index.jade └── layout.jade /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 18 | .grunt 19 | 20 | # node-waf configuration 21 | .lock-wscript 22 | 23 | # Compiled binary addons (http://nodejs.org/api/addons.html) 24 | build/Release 25 | 26 | # Dependency directory 27 | node_modules 28 | 29 | # Optional npm cache directory 30 | .npm 31 | 32 | # Optional REPL history 33 | .node_repl_history 34 | 35 | app/src/libs/ 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project-Politicos-Corruptos 2 | 3 | [](https://gitter.im/Webschool-io/Project-Politicos-Corruptos?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 4 | 5 | Sistema para mostrar quais os políticos estão envolvidos em corrupção PARA NUNCA MAIS NINGUÉM VOTAR NELES!!! 6 | 7 | ## Equipe 8 | 9 | **Frontend**: 10 | - [zeucxb](https://github.com/zeucxb) 11 | - [williandutrass](https://github.com/williandutrass) 12 | - [paulinhoerry](https://github.com/paulinhoerry) 13 | - [estevanmaito](https://github.com/estevanmaito) 14 | 15 | **Backend** 16 | - [victorvoid](https://github.com/victorvoid) 17 | - [guilhermependezza](https://github.com/guilhermependezza) 18 | - [guilhermeepaixaoo](https://github.com/guilhermeepaixaoo) 19 | - [suissa](https://github.com/suissa) 20 | 21 | Coordenação: Suissinho. 22 | 23 | ## Arquitetura 24 | 25 | ### Entidades 26 | 27 | - Political: político 28 | - PoliticalParty: partido 29 | 30 | #### Political 31 | 32 | Entidade que representa o Político e para tanto deve conter os seguintes campos: 33 | 34 | - name: String 35 | - polticalParty: \_id 36 | - currentPosition: String 37 | - previousPositions: Array 38 | - actsOfCorruption: Array 39 | 40 | #### PoliticalParty 41 | 42 | - name: String 43 | - releaseYear: Date 44 | 45 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var path = require('path'); 3 | var favicon = require('static-favicon'); 4 | var logger = require('morgan'); 5 | var cookieParser = require('cookie-parser'); 6 | var bodyParser = require('body-parser'); 7 | 8 | var routes = require('./routes/index'); 9 | var users = require('./routes/users'); 10 | 11 | var app = express(); 12 | 13 | // view engine setup 14 | app.set('views', path.join(__dirname, 'views')); 15 | app.set('view engine', 'jade'); 16 | 17 | app.use(favicon()); 18 | app.use(logger('dev')); 19 | app.use(bodyParser.json()); 20 | app.use(bodyParser.urlencoded()); 21 | app.use(cookieParser()); 22 | app.use(express.static(path.join(__dirname, 'public'))); 23 | 24 | app.use('/', routes); 25 | app.use('/users', users); 26 | 27 | /// catch 404 and forward to error handler 28 | app.use(function(req, res, next) { 29 | var err = new Error('Not Found'); 30 | err.status = 404; 31 | next(err); 32 | }); 33 | 34 | /// error handlers 35 | 36 | // development error handler 37 | // will print stacktrace 38 | if (app.get('env') === 'development') { 39 | app.use(function(err, req, res, next) { 40 | res.status(err.status || 500); 41 | res.render('error', { 42 | message: err.message, 43 | error: err 44 | }); 45 | }); 46 | } 47 | 48 | // production error handler 49 | // no stacktraces leaked to user 50 | app.use(function(err, req, res, next) { 51 | res.status(err.status || 500); 52 | res.render('error', { 53 | message: err.message, 54 | error: {} 55 | }); 56 | }); 57 | 58 | 59 | module.exports = app; 60 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /app/.meteor/.finished-upgraders: -------------------------------------------------------------------------------- 1 | # This file contains information which helps Meteor properly upgrade your 2 | # app when you run 'meteor update'. You should check it into version control 3 | # with your project. 4 | 5 | notices-for-0.9.0 6 | notices-for-0.9.1 7 | 0.9.4-platform-file 8 | notices-for-facebook-graph-api-2 9 | 1.2.0-standard-minifiers-package 10 | 1.2.0-meteor-platform-split 11 | 1.2.0-cordova-changes 12 | 1.2.0-breaking-changes 13 | 1.3.0-split-minifiers-package 14 | -------------------------------------------------------------------------------- /app/.meteor/.gitignore: -------------------------------------------------------------------------------- 1 | local 2 | -------------------------------------------------------------------------------- /app/.meteor/.id: -------------------------------------------------------------------------------- 1 | # This file contains a token that is unique to your project. 2 | # Check it into your repository along with the rest of this directory. 3 | # It can be used for purposes such as: 4 | # - ensuring you don't accidentally deploy one app on top of another 5 | # - providing package authors with aggregated statistics 6 | 7 | opw3wf1dh3x3n1p3ymqg 8 | -------------------------------------------------------------------------------- /app/.meteor/packages: -------------------------------------------------------------------------------- 1 | # Meteor packages used by this project, one per line. 2 | # Check this file (and the other files in this directory) into your repository. 3 | # 4 | # 'meteor add' and 'meteor remove' will edit this file for you, 5 | # but you can also edit it by hand. 6 | 7 | meteor-base # Packages every Meteor app needs to have 8 | mobile-experience # Packages for a great mobile UX 9 | mongo # The database Meteor supports right now 10 | blaze-html-templates # Compile .html files into Meteor Blaze views 11 | reactive-var # Reactive variable for tracker 12 | jquery # Helpful client-side library 13 | tracker # Meteor's client-side reactive programming library 14 | 15 | standard-minifier-css # CSS minifier run for production mode 16 | standard-minifier-js # JS minifier run for production mode 17 | es5-shim # ECMAScript 5 compatibility for older browsers. 18 | ecmascript # Enable ECMAScript2015+ syntax in app code 19 | 20 | autopublish # Publish all data to the clients (for prototyping) 21 | insecure # Allow all DB writes from clients (for prototyping) 22 | -------------------------------------------------------------------------------- /app/.meteor/platforms: -------------------------------------------------------------------------------- 1 | server 2 | browser 3 | -------------------------------------------------------------------------------- /app/.meteor/release: -------------------------------------------------------------------------------- 1 | METEOR@1.3.1 2 | -------------------------------------------------------------------------------- /app/.meteor/versions: -------------------------------------------------------------------------------- 1 | allow-deny@1.0.3 2 | autopublish@1.0.6 3 | autoupdate@1.2.7 4 | babel-compiler@6.6.1 5 | babel-runtime@0.1.7 6 | base64@1.0.7 7 | binary-heap@1.0.7 8 | blaze@2.1.6 9 | blaze-html-templates@1.0.3 10 | blaze-tools@1.0.7 11 | boilerplate-generator@1.0.7 12 | caching-compiler@1.0.3 13 | caching-html-compiler@1.0.5 14 | callback-hook@1.0.7 15 | check@1.1.3 16 | ddp@1.2.4 17 | ddp-client@1.2.4 18 | ddp-common@1.2.4 19 | ddp-server@1.2.5 20 | deps@1.0.11 21 | diff-sequence@1.0.4 22 | ecmascript@0.4.2 23 | ecmascript-runtime@0.2.9 24 | ejson@1.0.10 25 | es5-shim@4.5.9 26 | fastclick@1.0.10 27 | geojson-utils@1.0.7 28 | hot-code-push@1.0.3 29 | html-tools@1.0.8 30 | htmljs@1.0.8 31 | http@1.1.4 32 | id-map@1.0.6 33 | insecure@1.0.6 34 | jquery@1.11.7 35 | launch-screen@1.0.10 36 | livedata@1.0.17 37 | logging@1.0.11 38 | meteor@1.1.13 39 | meteor-base@1.0.3 40 | minifier-css@1.1.10 41 | minifier-js@1.1.10 42 | minimongo@1.0.13 43 | mobile-experience@1.0.3 44 | mobile-status-bar@1.0.11 45 | modules@0.5.2 46 | modules-runtime@0.6.2 47 | mongo@1.1.6 48 | mongo-id@1.0.3 49 | npm-mongo@1.4.42 50 | observe-sequence@1.0.10 51 | ordered-dict@1.0.6 52 | promise@0.6.6 53 | random@1.0.8 54 | reactive-var@1.0.8 55 | reload@1.1.7 56 | retry@1.0.6 57 | routepolicy@1.0.9 58 | spacebars@1.0.10 59 | spacebars-compiler@1.0.10 60 | standard-minifier-css@1.0.5 61 | standard-minifier-js@1.0.5 62 | templating@1.1.8 63 | templating-tools@1.0.3 64 | tracker@1.0.12 65 | ui@1.0.10 66 | underscore@1.0.7 67 | url@1.0.8 68 | webapp@1.2.7 69 | webapp-hashing@1.0.8 70 | -------------------------------------------------------------------------------- /app/client/main.css: -------------------------------------------------------------------------------- 1 | /* CSS declarations go here */ 2 | -------------------------------------------------------------------------------- /app/client/main.html: -------------------------------------------------------------------------------- 1 |
2 |You've pressed the button {{counter}} times.
15 | 16 | 17 | 18 |