Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tiagocordeiro/zumaq-partners

Sistema de revendas parceiras da Zumaq
https://github.com/tiagocordeiro/zumaq-partners

django hacktoberfest python3

Last synced: about 2 months ago
JSON representation

Sistema de revendas parceiras da Zumaq

Awesome Lists containing this project

README

        

# zumaq-partners
## Sistema de revendas parceiras da Zumaq

![Deploy workflow](https://github.com/tiagocordeiro/zumaq-partners/actions/workflows/python-app.yml/badge.svg)
[![Build Status](https://travis-ci.org/tiagocordeiro/zumaq-partners.svg?branch=master)](https://travis-ci.org/tiagocordeiro/zumaq-partners)
[![Updates](https://pyup.io/repos/github/tiagocordeiro/zumaq-partners/shield.svg)](https://pyup.io/repos/github/tiagocordeiro/zumaq-partners/)
[![Python 3](https://pyup.io/repos/github/tiagocordeiro/zumaq-partners/python-3-shield.svg)](https://pyup.io/repos/github/tiagocordeiro/zumaq-partners/)
[![codecov](https://codecov.io/gh/tiagocordeiro/zumaq-partners/branch/master/graph/badge.svg)](https://codecov.io/gh/tiagocordeiro/zumaq-partners)
[![Python 3.10.8](https://img.shields.io/badge/python-3.10.8-blue.svg)](https://www.python.org/downloads/release/python-3108/)
[![Django 4.1.3](https://img.shields.io/badge/django-4.1.3-blue.svg)](https://www.djangoproject.com/download/)
[![PyBling](https://img.shields.io/badge/bling-API-green.svg)](https://github.com/tiagocordeiro/pybling)

### Como rodar o projeto?

* Clone esse repositório.
* Crie um virtualenv com Python 3.
* Ative o virtualenv.
* Instale as dependências.
* Rode as migrações.

```
git clone https://github.com/tiagocordeiro/zumaq-partners.git partners
cd partners
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python contrib/env_gen.py
python manage.py migrate
```

### Populando o banco de dados

Cria grupos de usuários ['Parceiro', 'Gerente']
```
python manage.py loaddata core/fixtures/groups.json
```

Cria usuário
```
python manage.py createsuperuser --username dev --email [email protected]
```

Atualiza cotações de moedas
```
python manage.py atualiza_cotacoes
```

### Testes

##### Rode os testes
```
python manage.py test -v 2
```
ou
```
coverage run manage.py test -v 2
coverage html
```
para relatório de cobertura de testes.

Code style
```
pycodestyle .
flake8 .
```