Skip to content

Commit

Permalink
Add initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wallacybraz committed Sep 27, 2018
1 parent 327124b commit 964d847
Show file tree
Hide file tree
Showing 15 changed files with 7,045 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
pdf2cash_front/node_modules
pdf2cash_front/npm-debug.log
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
**/.next
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:9.6-slim

WORKDIR /app

ENV PATH /app/node_modules/.bin:$PATH

COPY pdf2cash_front/package.json /app/package.json

RUN npm install


42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
# FrontEnd
# PDF2CASHFrontEnd

Repositório responsável por armazenar o código fonte do microserviço FrontEnd do projeto _PDF2CASH_.

## Iniciando usando docker

### Pré-requisitos

A fim de conseguir iniciar o serviço, os seguintes pacotes são necessários:

- docker
- docker-compose

Caso esteja usando uma plataforma linux, verifique na documentação de sua distro, como obter os referidos pacotes.

### Instalando

Construa os containers:
```bash
docker-compose build
```
### Uso

Execute o compose:
```bash
docker-compose up
```

O comando acima irá deixar o container rodando o servidor e escutando pela porta 3000

```bash
http://localhost:3000/
```

## Contribuindo

Por favor leia o nosso [CONTRIBUTING.md](https://github.com/fga-eps-mds/2018.2-PDF2CASH/blob/master/CONTRIBUTING.md) se deseja contribuir com nosso projeto.

## Licensa

Esse projeto é licensiado sobre a licensa MIT
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'
services:
front:
build: .
command: npm run dev
volumes:
- ./pdf2cash_front:/app
- /app/node_modules
ports:
- "3000:3000"
environment:
- NODE_ENV=development

3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pdf2cash_front/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["next/babel"]
}
1 change: 1 addition & 0 deletions pdf2cash_front/comps/comps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place reusable react components on this directory then export them when needed.
1 change: 1 addition & 0 deletions pdf2cash_front/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
Loading

0 comments on commit 964d847

Please sign in to comment.