Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tiagocordeiro/zumaq-partners
- Owner: tiagocordeiro
- License: mit
- Created: 2018-11-23T01:50:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-16T09:49:50.000Z (about 2 months ago)
- Last Synced: 2024-11-16T10:27:17.795Z (about 2 months ago)
- Topics: django, hacktoberfest, python3
- Language: HTML
- Homepage:
- Size: 3.21 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 .
```