Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kleber Rocha - frontend-challenge #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<img src="./img/logo-clubpetro.png"
alt="Clubpetro" width="300">

- [Descrição](#descrição)
- [Descrição](#descrição)
- [O Desafio](#o-desafio)
- [Requisitos Obrigatórios](#requisitos-obrigatórios)
- [Bônus](#bônus)
- [Submissão e Prazo de Entrega](#submissão-e-prazo-de-entrega)
- [Execute o projeto localmente](#Execute-o-projeto-localmente)


## Descrição

Expand Down Expand Up @@ -55,3 +57,39 @@ Quando o usuário clicar em "Adicionar", o formulário deverá ser resetado e o
- O canditado deverá realizar um fork deste repositório e submeter o código no mesmo;
- O prazo de entrega para este desafio é de 2 (duas) semanas, contando a partir do dia em que o candidato recebeu o email com o link do repositório;
- Ao finalizar o desafio, o candidato deverá enviar um email para [email protected] contendo o link do seu PR.

### Execute o projeto localmente

Stack:

- React
- Styled Components
- JSON Server

**1 -** Clone o projeto e instale as dependências:

```
$ git clone https://github.com/kleberMRocha/frontend-challenge
$ cd frontend-challenge
$ cd lugares
$ yarn

- Abra outro terminal na pasta raiz frontend-challenge
$ cd backend
$ yarn
```
**2 -** Execute o projeto localmente:

```
- No terminal que está aberto a pasta lugares
$ yarn start

```

```
- No terminal que está aberto a pasta backend
$ yarn json-server --watch db.json

```

Abra http: // localhost:3006 para visualizar o projeto no navegador
23 changes: 23 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
31 changes: 31 additions & 0 deletions backend/db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"countries": [
{
"country": {
"name": "Brazil",
"flag": "https://restcountries.eu/data/bra.svg"
},
"location": "Rio deJaneiro",
"goal": "05/2022",
"id": 1
},
{
"country": {
"name": "Brazil",
"flag": "https://restcountries.eu/data/bra.svg"
},
"location": "Minas Gerais",
"goal": "02/2023",
"id": 2
},
{
"country": {
"name": "Canada",
"flag": "https://restcountries.eu/data/can.svg"
},
"location": "Montreal",
"goal": "02/2030",
"id": 4
}
]
}
9 changes: 9 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "backend",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"json-server": "^0.16.3"
}
}
Loading