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

pitanga challenge #5

Open
wants to merge 1 commit 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
6 changes: 6 additions & 0 deletions pitangamovies/.buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
9 changes: 9 additions & 0 deletions pitangamovies/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions pitangamovies/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/*.js
node_modules
build
57 changes: 57 additions & 0 deletions pitangamovies/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"env": {
"es6": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": "error",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"import/prefer-default-export": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
1 change: 1 addition & 0 deletions pitangamovies/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
Binary file added pitangamovies/.github/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions pitangamovies/.github/pitang.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions pitangamovies/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# Visual Studio Code
#
.vscode/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/
29 changes: 29 additions & 0 deletions pitangamovies/.stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"processors": [
"stylelint-processor-styled-components"
],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components"
],
"syntax": "scss",
"rules": {
"block-no-empty": null,
"declaration-block-no-redundant-longhand-properties": null,
"block-closing-brace-newline-before": null,
"indentation": null,
"property-no-unknown": [
true,
{
"ignoreProperties": [
"padding-vertical",
"padding-horizontal",
"shadow-color",
"shadow-offset",
"shadow-radius",
"shadow-opacity"
]
}
]
}
}
1 change: 1 addition & 0 deletions pitangamovies/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
86 changes: 86 additions & 0 deletions pitangamovies/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<h1 align="center">
<a href="https://pitang.com/" target="_blank">
<img alt="pitang" title="#pitang" src=".github/pitang.svg" width="250px" />
</a>
</h1>

<h4 align="center">
🚀 pitang Movies
</h4>

<p align="center">
<img alt="GitHub language count" src="https://img.shields.io/github/languages/count/WallysonGalvao/desafio-rn">

<img alt="Repository size" src="https://img.shields.io/github/repo-size/WallysonGalvao/desafio-rn">

<a href="https://github.com/WallysonGalvao/desafio-rn/commits/master">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/WallysonGalvao/desafio-rn">
</a>

<a href="https://github.com/WallysonGalvao/desafio-rn/issues">
<img alt="Repository issues" src="https://img.shields.io/github/issues/WallysonGalvao/desafio-rn">
</a>

<img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen">
</p>

<p align="center">
<a href="#-projeto">Projeto</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a href="#-layout">Layout</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a href="#rocket-tecnologias">Tecnologias</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a href="#rocket-executando">Executando</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a href="#memo-licença">Licença</a>
</p>
<br>

## 💻 Projeto

Esse desafio faz parte do processo seletivo da **[pitang](https://www.pitang.com/)**, com foco em React Native. Trata-se de um aplicativo de catálogo de filmes que consome uma API hospedada no Heroku.

## 🎨 Layout

<p align="center">
<img alt="pitang Movies App" title="#pitang" src=".github/app.png" width="720px" />
</p>

## :rocket: Tecnologias

Esse projeto foi desenvolvido com as seguintes tecnologias:

- [Typescript](https://www.typescriptlang.org/)
- [React Native](https://reactnative.dev/)
- [Styled-components](https://www.styled-components.com/)

\* Para mais detalhes, veja o <kbd>[package.json](./package.json)</kbd>

## :notebook: Executando

### Pré-requisitos

É necessário que um simulador android/ios esteja rodando, ou um aparelho fisico.

<em>Obs: Não testei no iOS por motivos de: não tenho Mac.</em>

```bash
# Clone este repositório
$ git clone https://github.com/WallysonGalvao/desafio-rn.git

# Acesse a pasta do projeto no seu terminal/cmd
$ cd desafio-rn

# Instale as dependências
$ yarn install

# Execute a aplicação
$ yarn android ou yarn ios
```

Se desejar, pode rodar os testes do projeto:

```bash
$ yarn test
```

---

Feito com horas em frente ao :computer: por [Wallyson Galvão](https://www.linkedin.com/in/wallyson-galvao/)
Loading