Skip to content

Commit a8b1bb5

Browse files
Merge pull request #12 from leandro-mancini/docs/core/update-readme
Docs/core/update readme
2 parents af042a2 + 960e22c commit a8b1bb5

12 files changed

+117
-53
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- uses: subosito/flutter-action@v2
6363
with:
6464
channel: 'stable'
65-
- name: Flutter analyze
65+
- name: Flutter appbundle
6666
run: npx nx run flutter-suflex:build-appbundle
6767
- name: Upload appbundle
6868
uses: actions/upload-artifact@v3

README.md

Lines changed: 114 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,157 @@
1+
# Flutter desafio
12

3+
Desafio em flutter consumindo [API The Rick and Morty](https://rickandmortyapi.com/).
24

3-
# FlutterDesafio
5+
Monorepo para projetos frontend utilizando
46

5-
This project was generated using [Nx](https://nx.dev).
7+
- [Nx Workspace](https://nx.dev/) 14.8.6
8+
- [Flutter](https://flutter.dev/) 3.0.5
9+
- Dart 2.17.6
10+
- Node 16.16.0
11+
- Npm 8.11.0
612

7-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="450"></p>
13+
## Dependências
814

9-
🔎 **Smart, Fast and Extensible Build System**
15+
- [dio](https://pub.dev/packages/dio) 4.0.6
16+
- [flutter_modular](https://pub.dev/packages/flutter_modular) 5.0.3
17+
- [flutter_mobx](https://pub.dev/packages/flutter_mobx) 2.0.6+4
18+
- [flutter_svg](https://pub.dev/packages/flutter_svg) 1.1.5
19+
- [intl](https://pub.dev/packages/intl) 0.17.0
20+
- [mobx](https://pub.dev/packages/mobx) 2.1.1
21+
- [shared_preferences](https://pub.dev/packages/shared_preferences) 2.0.15
22+
- [skeletons](https://pub.dev/packages/skeletons) 0.0.3
1023

11-
## Adding capabilities to your workspace
24+
## Funcionalidades
1225

13-
Nx supports many plugins which add capabilities for developing different types of applications and different tools.
26+
- Lista dos personagens com seus respectivos nomes e fotos
27+
- Busca por personagens (Nome)
28+
- Filtro que permite listar todos, só humanos ou só aliens, status e gênero
29+
- Visualização detalhada do personagem
30+
- Lista de favoritos e adicionar/remover personagens
31+
- Visualização detalhada do episódio
1432

15-
These capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.
33+
## Configurações iniciais
1634

17-
Below are our core plugins:
35+
> 💡 Garanta que seu Node esteja na versão 16x, para uma melhor compatibilidade e integração
1836
19-
- [React](https://reactjs.org)
20-
- `npm install --save-dev @nrwl/react`
21-
- Web (no framework frontends)
22-
- `npm install --save-dev @nrwl/web`
23-
- [Angular](https://angular.io)
24-
- `npm install --save-dev @nrwl/angular`
25-
- [Nest](https://nestjs.com)
26-
- `npm install --save-dev @nrwl/nest`
27-
- [Express](https://expressjs.com)
28-
- `npm install --save-dev @nrwl/express`
29-
- [Node](https://nodejs.org)
30-
- `npm install --save-dev @nrwl/node`
37+
Na raiz do repositório execute o comando
3138

32-
There are also many [community plugins](https://nx.dev/community) you could add.
39+
```bash
40+
npm install
41+
```
3342

34-
## Generate an application
43+
Antes de executar o projeto, execute os comandos
3544

36-
Run `nx g @nrwl/react:app my-app` to generate an application.
45+
```bash
46+
nx run flutter-suflex:clean
47+
```
3748

38-
> You can use any of the plugins above to generate applications as well.
49+
Para iniciar o aplicativo em desenvolvimento, execute o comando
3950

40-
When using Nx, you can create multiple applications and libraries in the same workspace.
51+
```bash
52+
npx nx run flutter-suflex:run
53+
```
4154

42-
## Generate a library
55+
---
4356

44-
Run `nx g @nrwl/react:lib my-lib` to generate a library.
57+
## Comandos úteis
4558

46-
> You can also use any of the plugins above to generate libraries as well.
59+
Todos os comandos rodam no NX CLI instalado no workspace.
4760

48-
Libraries are shareable across libraries and applications. They can be imported from `@flutter-desafio/mylib`.
61+
Caso estela com algum problema com o comando local você pode acionar pelo `npx`
4962

50-
## Development server
63+
| COMANDO | DESCRIÇÃO |
64+
| ------- | --------- |
65+
| `nx run flutter-suflex:analyze` | Analise o código Dart do projeto |
66+
| `nx run flutter-suflex:clean` | Excluir os diretórios `build/` e `dart_tool/` |
67+
| `nx run flutter-suflex:format` | Formate um ou mais arquivos Dart |
68+
| `nx run flutter-suflex:test` | Execute testes de unidade Flutter para o projeto atual |
69+
| `nx run flutter-suflex:doctor` | Execute o Flutter doctor para verificar o ambiente e o status da instalação do Flutter |
70+
| `nx run flutter-suflex:assemble` | Montar e construir recursos Flutter |
71+
| `nx run flutter-suflex:attach` | Anexar a um aplicativo em execução |
72+
| `nx run flutter-suflex:drive` | Execute testes de integração para o projeto em um dispositivo ou emulador conectado |
73+
| `nx run flutter-suflex:gen-l10n` | Gerar localizações para o projeto atual |
74+
| `nx run flutter-suflex:install` | Instale um aplicativo Flutter em um dispositivo conectado |
75+
| `nx run flutter-suflex:run` | Execute seu aplicativo Flutter em um dispositivo conectado |
76+
| `nx run flutter-suflex:build-aar` | Construir um repositório contendo um AAR e um arquivo POM |
77+
| `nx run flutter-suflex:build-apk` | Crie um arquivo APK do Android a partir do seu aplicativo |
78+
| `nx run flutter-suflex:build-appbundle` | Crie um arquivo Android App Bundle a partir do seu aplicativo |
79+
| `nx run flutter-suflex:build-bundle` | Crie o diretório de ativos do Flutter a partir do seu aplicativo |
80+
| `nx run flutter-suflex:build-ios` | Criar um pacote de aplicativos iOS (somente host Mac OS X) |
81+
| `nx run flutter-suflex:build-ios-framework` | Produz um diretório .framework para um módulo Flutter e seus plugins para integração em projetos Xcode simples e existentes |
82+
| `nx run flutter-suflex:build-ipa` | Criar um pacote de arquivos iOS (somente host do Mac OS X) |
5183

52-
Run `nx serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
84+
### Exemplos
5385

54-
## Code scaffolding
86+
Serve a aplicação em modo desenvolvimento
5587

56-
Run `nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
88+
```bash
89+
nx run flutter-suflex:run
90+
```
5791

58-
## Build
92+
Execute os testes unitários do projeto
5993

60-
Run `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
94+
```bash
95+
nx run flutter-suflex:test
96+
```
6197

62-
## Running unit tests
98+
Execute todos os testes unitários do repositório
6399

64-
Run `nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
100+
```bash
101+
nx run-many --target=test --all=true
102+
```
65103

66-
Run `nx affected:test` to execute the unit tests affected by a change.
104+
## Workflows
67105

68-
## Running end-to-end tests
106+
Sempre que uma PR é aberta é iniciado um workflow de `CI` (Continuous Integration). Após ser criado um novo release é iniciado um workflow de `CD` (Continuous Delivery).
69107

70-
Run `nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
108+
### CI - Continuous Integration
71109

72-
Run `nx affected:e2e` to execute the end-to-end tests affected by a change.
110+
O `CI` auxilia em termos de segurança e confiabilidade no código desenvolvido, antes dele ser de fato mergeado. Onde é estressados cenários de testes, análises do código e formatação.
73111

74-
## Understand your workspace
112+
#### Jobs que são executados:
75113

76-
Run `nx graph` to see a diagram of the dependencies of your projects.
114+
- prepare
115+
- analyze
116+
- test
77117

78-
## Further help
118+
![image](https://user-images.githubusercontent.com/8883746/197499630-be60f3b2-b626-4f46-813f-d4e4b499fd45.png)
79119

80-
Visit the [Nx Documentation](https://nx.dev) to learn more.
120+
### CD - Continuous Delivery
81121

122+
Esse workflow é responsável por buildar o aplicativo e gerar o `appbundle`
82123

124+
#### Jobs que são executados:
83125

84-
## ☁ Nx Cloud
126+
- prepare
127+
- build_appbundle
85128

86-
### Distributed Computation Caching & Distributed Task Execution
129+
![image](https://user-images.githubusercontent.com/8883746/197499861-a6027aa5-236b-4454-8c6d-247af9153d5a.png)
87130

88-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-cloud-card.png"></p>
131+
## Integração com o gráfico de dependências
89132

90-
Nx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.
133+
Através do comando `nx graph`, é possível visualizar as dependências de qualquer módulo. Ele abrirá um gráfico de dependência em um navegador. No menu do lado esquerdo, você pode escolher quais projetos deseja incluir na visualização. Após clicar em Select all, você deverá ver o seguinte gráfico:
91134

92-
Teams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nx’s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.
135+
![image](https://user-images.githubusercontent.com/8883746/197503984-5042cdf4-9760-4ad4-8dd6-4a38d979973e.png)
93136

94-
Visit [Nx Cloud](https://nx.app/) to learn more.
137+
| Personagens | Episódios | Splash |
138+
| ----- | ----- | ----- |
139+
| ![image](https://user-images.githubusercontent.com/8883746/197504751-403e6177-11b8-40f0-af10-0b6764d34c2d.png) | ![image](https://user-images.githubusercontent.com/8883746/197505259-e09371ce-966b-4f53-8ed3-a55422ba4397.png) | ![image](https://user-images.githubusercontent.com/8883746/197505393-879f09fc-b37a-469c-ad57-e1dc9cd9e97b.png) |
140+
141+
## Capturas de tela
142+
143+
| Personagens | Busca |
144+
| ----------- | ----- |
145+
| ![image](./_screenshots/01.personagens.jpeg) | ![image](./_screenshots/02.busca.jpeg) |
146+
147+
| Detalhe/Informações | Detalhe/Episódios |
148+
| ------------------- | ----------------- |
149+
| ![image](./_screenshots/03.detalhe-informacoes.jpeg) | ![image](./_screenshots/03.detalhe-episodios.jpeg) |
150+
151+
| Episódio/Informações | Episódio/Personagens |
152+
| -------------------- | -------------------- |
153+
| ![image](./_screenshots/04.episodio-informacoes.jpeg) | ![image](./_screenshots/04.episodio-personagens.jpeg) |
154+
155+
| Filtros | Favoritos |
156+
| -------------------- | -------------------- |
157+
| ![image](./_screenshots/05.filtros.jpeg) | ![image](./_screenshots/06.favoritos.jpeg) |

_screenshots/01.personagens.jpeg

40 KB
Loading

_screenshots/02.busca.jpeg

38.6 KB
Loading
48.6 KB
Loading
45.5 KB
Loading
28.1 KB
Loading
35.8 KB
Loading

_screenshots/05.filtros.jpeg

34.1 KB
Loading

_screenshots/06.favoritos.jpeg

34.7 KB
Loading

apps/flutter/suflex/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "flutter-suflex",
44
"sourceRoot": "apps/flutter/suflex/src",
55
"projectType": "application",
6-
"implicitDependencies": ["flutter-characters", "flutter-episodes"],
6+
"implicitDependencies": ["flutter-characters", "flutter-episodes", "flutter-splash"],
77
"targets": {
88
"analyze": {
99
"executor": "@nrwl/workspace:run-commands",

libs/flutter/splash/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "flutter-splash",
44
"sourceRoot": "libs/flutter/splash/src",
55
"projectType": "library",
6+
"implicitDependencies": ["flutter-shared"],
67
"targets": {
78
"analyze": {
89
"executor": "@nrwl/workspace:run-commands",

0 commit comments

Comments
 (0)