curl -L https://raw.githubusercontent.com/cosmun-softwares/django-boilerplate/master/setup.sh | bash -s <project_name>
curl -L https://raw.githubusercontent.com/cosmun-softwares/django-boilerplate/master/setup.sh | bash -s <project_name> -s osx
- Clone o repositório
- Crie um virtualenv com Python 3.7
- Ative o virtualenv
- Instale as dependências
- Configure a instância com o .env
- Execute os testes
- Execute o runserver
git <git url>
cd project_name
virtualenv env --python=python3 # python 3.6 ou mais atual
source env/bin/activate
pip install -r requirements_dev.txt
cp contrib/env-sample .env
coverage run --source='.' manage.py test -v 2 ; coverage report --show-missing
python manage.py runserver
flake8 --config=.flake8
- Ative o virtualenv
- Execute o gerador
- Copie a chave
- Cole na variável SECRET_KEY do arquivo .env
source env/bin/active
python contrib/secret_gen.py
bash backup/commands.sh