Skip to content

Commit

Permalink
Merge pull request #38 from fga-eps-mds/support/document-environment-…
Browse files Browse the repository at this point in the history
…execution

[#33] docs - Steps to run application
  • Loading branch information
guilherme1guy committed Oct 1, 2021
2 parents 26cf0a7 + bccf854 commit f33f857
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .firebase.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FIREBASE_TYPE=
FIREBASE_PROJECT_ID=
FIREBASE_PRIVATE_KEY_ID=
FIREBASE_PRIVATE_KEY=
FIREBASE_CLIENT_EMAIL=
FIREBASE_CLIENT_ID=
FIREBASE_AUTH_URI=
FIREBASE_TOKEN_URI=
FIREBASE_AUTH_PROVIDER=
FIREBASE_CLIENT_X509=
33 changes: 22 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,48 @@ Repositório do gateway do projeto da Cartografia social

## [**Dependências**](#Sumário)

Para a execução local da Wiki do projeto serão necessárias as seguintes dependências:
Para a execução local da aplicação será necessário ter instaladas as seguintes ferramentas:

* [NodeJs](https://nodejs.org/en/)
* [VSCode](https://code.visualstudio.com/) (Opcional)
* [Npm](https://docs.npmjs.com/getting-started)
* [Docker Compose](https://docs.docker.com/compose/install/)

## [**Execução**](#Sumário)

### Installation
### **Instalação**

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fga-eps-mds_2021.1-Cartografia-social-api-gateway&metric=alert_status)](https://sonarcloud.io/dashboard?id=fga-eps-mds_2021.1-Cartografia-social-api-gateway)

[![Coverage Status](https://coveralls.io/repos/github/fga-eps-mds/2021.1-Cartografia-social-api-gateway/badge.svg?branch=main)](https://coveralls.io/github/fga-eps-mds/2021.1-Cartografia-social-api-gateway?branch=main)

### Faça um clone do repositório

```bash
$ git clone https://github.com/fga-eps-mds/2021.1-Cartografia-social-api-gateway
```

### Instalando as dependências e Configurando variáveis de ambiente

```bash
$ cd 2021.1-Cartografia-social-api-gateway
$ npm install
```
Crie um projeto no [firebase](https://firebase.google.com/docs/android/setup?hl=pt) e crie um arquivo '.firebase.env.' no diretório raiz. Se baseie no arquivo '.firebase.env.example' para o preenchimento das configurações.

### Running the app
### Executando a aplicação
Escolha um dos ambientes para a execução

```bash
# development
$ npm run start
# development ambient
$ docker-compose up gateway-dev mongo

# watch mode
$ npm run start:dev
# debug ambient
$ docker-compose up gateway-debug mongo

# production mode
$ npm run start:prod
$ docker-compose up gateway-prod mongo
```

### Test
### Testes

```bash
# unit tests
Expand Down

0 comments on commit f33f857

Please sign in to comment.