Skip to content
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
55 changes: 21 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,35 @@
## Accurate Software
# Candidato - Dev Frontend - Júnior

<img src="https://accurate.com.br/wp-content/uploads/2020/06/logo-accurate-300.svg" alt="drawing" width="200"/>
Para o cumprimento do desafio frontend eu fiz utilização da API da [Musixmatch](https://developer.musixmatch.com/);

Seja bem-vindo a [Accurate Software](https://accurate.com.br).
<img src="https://davidcarmoupload.s3.sa-east-1.amazonaws.com/d05d00124b9f8f53bcdfdfa820c33f43%20-%20logo.png" alt="drawing" width="500"/>

Temos diversas vagas para desenvolvedores: Frontend, Backend e Fullstack!
Criei uma aplicação simples que gera um Harry Ipsum - um lorem ipsum tendo como base as letras das músicas do álbum Fine Line do cantor Harry Styles - as letras das músicas são fornecidas pela api da MusixMacth.

> Para conhecer melhor os candidatos, preparamos um desafio técnico. Não se preocupe em cumprir todos os requisitos propostos no desafio, este teste visa avaliar a sua capacidade de resolução de problemas. Abaixo serão apresentados dois desafios direcionados aos perfis frontend e backend, caso o seu perfil for voltado para fullstack fique a vontade em nos enviar uma solução completa abordando tanto frontend quanto backend!
<img src="https://davidcarmoupload.s3.sa-east-1.amazonaws.com/24ce92132a16338facaa29b8e23fb191%20-%20HarryIpsonScreen.png" alt="drawing" width="700"/>

## Instruções
Para o consumo da API Musixmatch foi necessário a criação do server com node.JS devido os navegadores bloquearem as requisições para terceiros devido a política de CORS.

1. Para começar o desafio, realize um fork no repositório: https://github.com/accurate-software/accurate-software.github.io
# Tecnologias Utilizadas
+ <a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> CSS</a>
+ <a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> HTML5 </a>
+ <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> JavaScript</a>
+ <a href="https://nodejs.org" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original-wordmark.svg" alt="nodejs" width="40" height="40"/> Node </a>

2. O desafio deverá set commitado no fork.
+ <a href="https://reactjs.org/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/> ReactJS </a>

3. Após a finalização do desafio, solicite um pull request do fork no nosso repositório ;)
# Pré - Requisitos e Execução

### Desafio Frontend
Antes de começar, você vai precisar ter instalado em sua máquina as seguintes ferramentas:
Git, Node.js., NPM (Recomendo o Yarn) e o VSCode. Siga os passos a seguir:

O seu desafio é realizar um desenvolvimento de uma aplicação frontend que compra os requisitos:
+ Instale as dependências com npm install nos diretórios server e harry_ipsum

+ Consumo de API REST
+ CRUD ou listagem de algum recurso da API
+ Utilizar alguma API pública, podendo ser alguma do site: https://public-apis.xyz/
+ Inicie o servidor do node na pasta server com npm dev
+ Após o servidor iniciar inicie também o react na pasta harry_ipsum
npm start

Vamos avaliar a sua capacidade como desenvolvedor frontend, observando os critérios:
Provavelmente tudo correrá bem, mas caso execute e não retorne nenhum dado existe a possibilidade de key_id da api ter expirado ou os acessos do dia para essa key free estejam esgotados.

+ Uso semântico do HTML
+ Estruturação do layout e tags CSS
+ Layout acessível e responsivo
+ Utilização de frameworks da atualizade, como: React, Vue, Angular ou algum outro de sua preferência.
+ Lembre-se de documentar a solução com um README.MD :)
Para utilizar uma outra key na aplicação, basta simplementes que abra a pasta server e encontre o arquivo .env, lá sera possível encontrar uma key_id reserva, copie o que vem após // e substitua o que está na frente de "MUSIXMATCH_API_KEY = ". Reinicie o servidor e a aplicação funcionará normalmente.

### Desafio Backend

O seu desafio é realizar um desenvolvimento de uma API Rest para um site de achados e perfidos. Sua API deve conter as seguintes funcionalidades:

+ Cadastro de um "Achado"/"Perdido"
+ Atualização de histórico de um "Achado"/"Perdido"
+ Busca com opção de filtros, como por exemplo: Categoria
+ Relatório de cruzamento de informações "Achados"/"Perdidos", dado um categoria e um raio.

Fique a vontade para usar a linguagem e framework de sua preferência, como: Java, C# e Node! Porém se atente aos seguintes pontos:

+ Tratamento de erros e exceções
+ Clareza e clean code no desenvolvimento da solução
+ Documentação da solução - README.MD :)
1 change: 1 addition & 0 deletions harry_ipsum/.eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\index.js":"1","C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\Pages\\Home\\index.js":"2","C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\Services\\api.js":"3","C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\routes.js":"4","C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\App.js":"5","C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\App.js":"6","C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\Services\\api.js":"7","C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\routes.js":"8","C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\Pages\\Home\\index.js":"9","C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\index.js":"10","C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\Utils\\RandomNumber.js":"11"},{"size":198,"mtime":1610152106803,"results":"12","hashOfConfig":"13"},{"size":2814,"mtime":1610223183180,"results":"14","hashOfConfig":"13"},{"size":145,"mtime":1610177080526,"results":"15","hashOfConfig":"13"},{"size":345,"mtime":1610177853541,"results":"16","hashOfConfig":"13"},{"size":125,"mtime":1610192287874,"results":"17","hashOfConfig":"13"},{"size":125,"mtime":1610192287874,"results":"18","hashOfConfig":"19"},{"size":145,"mtime":1610177080526,"results":"20","hashOfConfig":"19"},{"size":345,"mtime":1610177853541,"results":"21","hashOfConfig":"19"},{"size":2710,"mtime":1610541844121,"results":"22","hashOfConfig":"19"},{"size":198,"mtime":1610152106803,"results":"23","hashOfConfig":"19"},{"size":196,"mtime":1610541667405,"results":"24","hashOfConfig":"19"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"27"},"163lh13",{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},"ghzsua",{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\index.js",[],["49","50"],"C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\Pages\\Home\\index.js",[],"C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\Services\\api.js",[],"C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\routes.js",[],"C:\\Users\\david\\Desktop\\TestAcurrateFrontEnd\\harry_ipsum\\src\\App.js",[],"C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\App.js",[],["51","52"],"C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\Services\\api.js",[],"C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\routes.js",[],"C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\Pages\\Home\\index.js",[],"C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\index.js",[],"C:\\Users\\david\\Desktop\\GitHubFolders\\accurate-software.github.io\\harry_ipsum\\src\\Utils\\RandomNumber.js",[],{"ruleId":"53","replacedBy":"54"},{"ruleId":"55","replacedBy":"56"},{"ruleId":"53","replacedBy":"57"},{"ruleId":"55","replacedBy":"58"},"no-native-reassign",["59"],"no-negated-in-lhs",["60"],["59"],["60"],"no-global-assign","no-unsafe-negation"]
23 changes: 23 additions & 0 deletions harry_ipsum/.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*
70 changes: 70 additions & 0 deletions harry_ipsum/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `yarn build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Loading