Skip to content

gfelitti/atlas_site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas Site

Para rodar o projeto, execute os passos abaixo:

Atualize o conda e crie um environment:

conda update conda
conda create --name atlas python=3
source activate atlas-site

Instale as bibliotecas dependentes:

pip install -r requirements.txt

Crie o banco de dados:

sudo su - postgres
psql
create database atlas;
create user atlas with password 'yourpassword';

alter role atlas set client_encoding to 'utf8';
alter role atlas set default_transaction_isolation to 'read committed';

grant all privileges on database atlas to atlas;
cd atlas

Configure as variáveis do arquivo .env para conexão ao banco de dados

cp .env.sample .env

Rode as migrations:

python manage.py migrate

Rode o script que popula a base de dados:

./scripts/run_scripts.sh

About

Site do atlas da câmara de vereadores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 77.0%
  • HTML 15.4%
  • CSS 6.2%
  • Shell 1.4%