From b10da8c8211ef7401c97774ee288fb6e1c678587 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sun, 19 Jul 2015 13:26:56 -0300 Subject: [PATCH] Created Development environment setup (markdown) --- Development-environment-setup.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Development-environment-setup.md diff --git a/Development-environment-setup.md b/Development-environment-setup.md new file mode 100644 index 0000000..2e04dce --- /dev/null +++ b/Development-environment-setup.md @@ -0,0 +1,23 @@ +### Instalação do Ambiente de Desenvolvimento + +Instalar as seguintes dependências de sistema (no Ubuntu): + + sudo apt-get install python3-dev libpq-dev graphviz graphviz-dev \ + postgresql postgresql-contrib pgadmin3 python-psycopg2 + + +* Criar um virtualenv usando python 3 para o projeto e ativá-lo. Se vc usa o + [virtualenvwrapper](https://virtualenvwrapper.readthedocs.org/en/latest/install.html#basic-installation): + + mkvirtualenv -p /usr/bin/python3 sapl +* Instalar as dependências python com: + + pip install -r requirements/dev-requirements.txt + +* Configurar o [PostgreSQL](https://help.ubuntu.com/community/PostgreSQL) +* Crie um role "sapl" com: + - senha "sapl", + - o privilégio "can create databases", + - uma data de expiração distante (ou infinita, usando p.ex. `ALTER ROLE sapl VALID UNTIL 'infinity';` +* Crie um banco "sapl" com owner "sapl". +* Restaure o dump do banco de desenvolvimento.