Esse repositório contem o código do programa que auxilia os eleitores e eleitoras de Campinas a escolherem o seu candidato ou candidata a vereadora de Campinas para as eleiçoes de 2016
Primeiro de tudo você precisa instalar o MySQL.
Depois que estiver instalado, crie um arquivo chamado .env
na raiz do projeto. Esse arquivo deve seguir a seguinte estrutura:
DB_HOST='localhost'
DB_USER='root'
DB_PASSWORD='suasenha'
DB_NAME='seubanco'
TOKEN_SECRET='0c1e50b0519fcc11024e65952026dafbfadc5defb93bc2acbf0c96b3fb9a0b02'
É muito importante que você crie esse banco que está listado no .env
, você pode fazer isso com o comando:
create database <seubanco>;
Com esse setup feito, é só rodar os camandos:
npm install
gulp
Generated by http://megaboilerplate.com
- Platform: node
- Framework: express
- Template Engine:
- CSS Framework: materialize
- CSS Preprocessor: css
- JavaScript Framework: angularjs
- Build Tool: gulp
- Unit Testing: jasmine
- Database: mysql
- Authentication: email,facebook
- Deployment: none
The MIT License (MIT)
Copyright (c) 2016 Sahat Yalkabov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.