Skip to content

Commit

Permalink
Merge pull request #6 from Kalkuli/100_Atualizar_readme
Browse files Browse the repository at this point in the history
Solve 100 Atualizar Readme
  • Loading branch information
Hargre authored Sep 25, 2018
2 parents 5a5867f + 0867600 commit 7a1be50
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,52 @@
[![Build Status](https://travis-ci.org/Kalkuli/2018.2-Kalkuli_Interpretation.svg?branch=master
)](https://travis-ci.com/Kalkuli/2018.2-Kalkuli_Interpretation)

# 2018.2-Kalkuli_Extraction
Microsserviço para a extração de texto de notas fiscais escaneadas.
# Serviço de Extração de Texto de Notas Fiscais

## Instalação
<div style="text-align: center">

sudo docker-compose -f docker-compose-dev.yml build

## Uso
sudo docker-compose -f docker-compose-dev.yml up
<a href="https://travis-ci.com/Kalkuli/2018.2-Kalkuli_Extraction"><img src="https://travis-ci.com/Kalkuli/2018.2-Kalkuli_Extraction.svg?branch=master" /></a>
<a href="https://codeclimate.com/github/Kalkuli/2018.2-Kalkuli_Extraction/test_coverage"><img src="https://api.codeclimate.com/v1/badges/6a9fd127ec7d6c8f6a1e/test_coverage" /></a>
<a href="https://codeclimate.com/github/Kalkuli/2018.2-Kalkuli_Extraction/maintainability"><img src="https://api.codeclimate.com/v1/badges/6a9fd127ec7d6c8f6a1e/maintainability" /></a>
<a href="https://opensource.org/licenses/GPL-3.0"><img src="https://img.shields.io/badge/license-GPL-%235DA8C1.svg"/></a>

</div>


# Configurando o ambiente
Para instruções de como instalar o _Docker_ e o _Docker-compose_ clique [aqui](https://github.com/Kalkuli/2018.2-Kalkuli_Front-End/blob/master/README.md).


## Colocando no ar
Com o _Docker_ e _Docker-Compose_ instalados, basta apenas utilizar os comandos:

```
docker-compose -f docker-compose-dev.yml build
```

e

```
docker-compose -f docker-compose-dev.yml up
```

As rotas estarão disponíveis através de localhost:5001

As rotas estarão disponíveis através de [localhost:5001](http://localhost:5001/).

## Testando

Para rodar os testes utilize o comando:

```docker-compose -f docker-compose-dev.yml run base python3.6 manage.py test```
```
docker-compose -f docker-compose-dev.yml run base python3.6 manage.py test
```

E para saber a cobertura dos testes utilize:

```docker-compose -f docker-compose-dev.yml run base python3.6 manage.py cov```
```
docker-compose -f docker-compose-dev.yml run base python3.6 manage.py cov
```

Para acessar a visualização do HTML coverage no browser, acesse a pasta htmlcov e abra o arquivo index.html no navegador, ou utilize o comando:
Para acessar a visualização do _HTML coverage_ no _browser_, acesse a pasta htmlcov e abra o arquivo index.html no navegador, ou utilize o comando:

```google-chrome ./htmlcov/index.html```
```
google-chrome ./htmlcov/index.html
```

0 comments on commit 7a1be50

Please sign in to comment.