Skip to content

Commit cd8639f

Browse files
committed
[DOCS] updates readme and contribute files
1 parent c747210 commit cd8639f

File tree

4 files changed

+53
-180
lines changed

4 files changed

+53
-180
lines changed

CONTRIBUTE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Guide for Contributors
2+
3+
> Note: If this is your first time contributing to a project, please read [this guide](https://github.com/Coding-in-community/.github/blob/master/FIRST_CONTRIBUTION.en.md) before proceeding.
4+
5+
## Index
6+
7+
- [Commit Convention](#commit-convention)
8+
- [Linter and Code formatter](#linter-and-code-formatter)
9+
10+
## Commit Convention
11+
12+
We are following [this](https://devbrotherhood.github.io/cmc/) convention for commits and everyone must follow it within the project.
13+
14+
## Linter and Code formatter
15+
16+
The linter used in the project is [ESLint](https://eslint.org/), while the code formatter is [Prettier](https://prettier.io/). Make sure you have the proper extensions installed in your editor.

CONTRIBUTE.pt.md

Lines changed: 9 additions & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -1,173 +1,16 @@
1-
# Guia Para Contribuidores do Projeto
1+
# Guia para Contribuidores
22

3-
## Index
4-
5-
- [Como contribuir?](#como-contribuir)
6-
- [1º Passo](#1º-passo) - Fork
7-
- [2º Passo](#2º-passo) - Clonagem
8-
- [3º Passo](#3º-passo) - Add link para repositório oficial
9-
- [4º Passo](#4º-passo) - Crie uma branch para contribuir
10-
- [5º Passo](#5º-passo) - Adicione e commite a contribuição
11-
- [6º Passo](#6º-passo) - Envie a branch com a contribuição para o fork
12-
- [7º Passo](#7º-passo) - Faça o pull requets da branch para o projeto oficial
13-
- [Contribuição aprovada, o quê fazer?](#contribuição-aprovada-o-quê-fazer)
14-
- [Deletando branch antiga localmente](#deletando-branch-antiga-localmente)
15-
- [Sincronizando o fork/clone com o repositório oficial](#sincronizando-o-forkclone-com-o-repositório-oficial)
16-
- [Sincronize o clone](#sincronize-o-clone)
17-
- [Sincronize o fork](#sincronize-o-fork)
18-
- [Links úteis](#links-úteis)
19-
20-
21-
## Como contribuir?
22-
23-
Para fazer contribuições certifique-se de que tenha o [git](https://git-scm.com/) instalado em seu ambiente.
24-
25-
Com o **git** já instalado, siga os passoa abaixo.
26-
27-
### 1º Passo
28-
29-
Faça o **fork** desse repositório para sua conta clicando no botão:
30-
31-
![image](https://user-images.githubusercontent.com/50463866/103658686-4cd2f500-4f4a-11eb-9f9d-3ba714bfc815.png)
32-
33-
Você será redirecionado para sua conta assim que o processo for concluído.
34-
35-
### 2º Passo
36-
37-
Após ter o repositório em sua conta, faça o **clone** em seu ambiente local:
38-
39-
```bash
40-
$ git clone https://github.com/<NOME_DA_SUA_CONTA>/alice.git
41-
```
42-
43-
### 3º Passo
44-
45-
Com o clone em seu ambiente, linke o repositório local ao remoto da organização [Coding in Community](https://github.com/Coding-in-community/alice):
46-
47-
```bash
48-
$ git remote add upstream https://github.com/Coding-in-community/alice.git
49-
```
50-
51-
Isso servirá para sincronizar atualizações feitas no repositório oficial para seu ambiente local.
52-
53-
> OBS: Esse comando só é necessário executar uma unica vez após a clonagem.
54-
55-
Para verificar se ocorreu tudo certo, execute em no terminal:
56-
57-
```bash
58-
$ git remote --v
59-
```
60-
61-
Se tudo ocorreu bem, deverá ter uma saída semelhante a essa:
62-
63-
```bash
64-
origin https://github.com/<NOME_DA_SUA_CONTA>/alice.git (fetch)
65-
origin https://github.com/<NOME_DA_SUA_CONTA>/alice.git (push)
66-
upstream https://github.com/Coding-in-community/alice.git (fetch)
67-
upstream https://github.com/Coding-in-community/alice.git (push)
68-
```
69-
70-
### 4º Passo
71-
72-
Crie uma **branch** para fazer sua contribuição:
73-
74-
```bash
75-
$ git checkout -b feature/nome_da_feature
76-
```
77-
78-
Agora adicione suas contribuições para o projeto.
79-
80-
### 5º Passo
81-
82-
Adicione suas contribuições:
83-
84-
85-
```bash
86-
$ git add arquivo_exemplo.js
87-
```
88-
89-
> OBS: Adicione todos os arquivos/diretórios adicionados e/ou modificados
3+
> Nota: Se essa é a sua primeira vez contribuindo em um projeto, leia [este guia](https://github.com/Coding-in-community/.github/blob/master/FIRST_CONTRIBUTION.pt.md) antes de prosseguir.
904
5+
## Index
916

92-
Agora faça o **commit**:
93-
94-
```bash
95-
$ git commit -m "Descrição da contribuição"
96-
```
97-
98-
### 6º Passo
99-
100-
Concluindo sua contribuição envie-a para o repositório remoto em sua conta:
101-
102-
```bash
103-
$ git push origin feature/nome_da_feature
104-
```
105-
106-
### 7º Passo
107-
108-
Em sua conta no github envie um **Pull Request** com sua contribuição para o repositório oficial:
109-
110-
![image](https://user-images.githubusercontent.com/50463866/103661883-0089b400-4f4e-11eb-8752-3c341fdc3e4a.png)
111-
112-
Agora aguarde a revisão de um dos mantenedores do projeto.
113-
114-
## Contribuição aprovada, o quê fazer?
115-
116-
Depois de um pull request aprovado, caso não queira contribuir novamente, poderá apagar a branch que usou para fazer a contribuição na própria página do Pull Request ou excluir o fork de sua conta.
117-
118-
Caso queira fazer outras contribuições que não tenha relação com a branch da contribuição antiga, delete a antiga e crie uma nova.
119-
120-
### Deletando branch antiga localmente
121-
122-
Vá para a branch padrão:
123-
124-
```bash
125-
$ git checkout master
126-
```
127-
128-
Delete a antiga:
129-
130-
```bash
131-
$ git branch -d nome_da_branch_antiga
132-
```
133-
134-
Agora crie uma nova branch e repita os passos [4º Passo](#4º-passo), [5º Passo](#5º-passo), [6º Passo](#6º-passo) e [7º Passo](#7º-passo)
135-
136-
137-
## Sincronizando o fork/clone com o repositório oficial
138-
139-
Para sincronizar o fork/clone com as novas features que tem no repositório oficial siga os passos abaixo:
140-
141-
### Sincronize o clone
142-
143-
Certifique-se de estar na branch padrão, que para esse projeto é a `master`:
144-
145-
```bash
146-
$ git checkout master
147-
```
148-
149-
Agora sincronize com:
150-
151-
```bash
152-
$ git pull upstream master
153-
```
154-
155-
Após isso o ambiente local estará sincronizado.
156-
157-
### Sincronize o fork
158-
159-
Com o ambiente local sincronizado, sincronize o remoto também:
160-
161-
```bash
162-
$ git push origin master
163-
```
164-
165-
Pronto, ambiente local e remoto sincronizado com o oficial.
7+
- [Commit Convention](#commit-convention)
8+
- [Linter e Code formatter](#linter-e-code-formatter)
1669

10+
## Commit Convention
16711

168-
## Links úteis
12+
Atualmente, estamos seguindo [esta](https://devbrotherhood.github.io/cmc/) convenção para commits e todos devem segui-la dentro do projeto.
16913

170-
Caso tenha dúvida com algum comando usado ou queira entender melhor, veja um dos links abaixo:
14+
## Linter e Code formatter
17115

172-
- [Documentação do git](https://git-scm.com/docs)
173-
- [Curso de Git - Rodrigo Branas](https://www.youtube.com/playlist?list=PLQCmSnNFVYnRdgxOC_ufH58NxlmM6VYd1)
16+
O linter usado no projeto é o [ESLint](https://eslint.org/), já o code formatter é o [Prettier](https://prettier.io/). Certifique-se de ter instalado as extensões apropriadas em seu editor.

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
alice
55
</h1>
66
<blockquote>
7-
A multipurpose system based on Inside Heartz whatsapp bot
7+
A whatsapp bot made to manage coding groups.
88
</blockquote>
99
<div id="badges">
1010
<img src="https://img.shields.io/github/repo-size/Coding-in-community/alice?color=4000FF" alt="repo-size" />
@@ -18,11 +18,12 @@
1818
- [About the project](#-about-the-project)
1919
- [How to run](#-how-to-run)
2020
- [How to contribute](#-how-to-contribute)
21+
- [Credits](#-credits)
2122
- [License](#-license)
2223

2324
## 💻 About the project
2425

25-
A multipurpose system based on <a href="https://github.com/fdciabdul/InsideHeartz-WhatsApp-Bot">Inside Heartz</a> whatsapp bot
26+
Alice is a whatsapp bot made to manage coding groups.
2627

2728
### 🚀 How to run
2829

@@ -39,27 +40,33 @@ A multipurpose system based on <a href="https://github.com/fdciabdul/InsideHeart
3940
npm install
4041
```
4142

42-
3. Run the application
43+
3. set up `.env` file. See [.env.example](/.env.example)
44+
45+
4. Run the application
4346

4447
```bash
45-
node alice/index.js
48+
npm start
4649
```
4750

48-
4. Scan QR code using whatsapp
51+
5. Scan QR code with whatsapp
4952

5053
## 🤝 How to contribute
5154

5255
Every kind of contribution is welcome, we admire it!
5356

5457
Is there any problem? Found a bug? Do you have any tips? Open an [issue](https://github.com/Coding-in-community/alice/issues) describing it.
5558

56-
Want to contribute code? We ask that you first read [this contribution guide](https://github.com/firstcontributions/first-contributions)
59+
Want to contribute code? We ask that you first read [this contribution guide](/CONTRIBUTE.md)
5760

5861
Don't forget to leave your ⭐, it is also a way to contribute to the project;)
5962

63+
## 👾 Credits
64+
65+
API used in this Bot: [whatsapp-web.js](https://github.com/pedroslopez/whatsapp-web.js)
66+
6067
## 📝 License
6168

62-
This project is under the MIT license. See the file [LICENSE](LICENSE) for more details.
69+
This project is under the MIT license. See [LICENSE](LICENSE) for more details.
6370

6471
---
6572

README.pt.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
alice
55
</h1>
66
<blockquote>
7-
A multipurpose system based on Inside Heartz whatsapp bot
7+
A whatsapp bot made to manage coding groups.
88
</blockquote>
99
<div id="badges">
1010
<img src="https://img.shields.io/github/repo-size/Coding-in-community/alice?color=4000FF" alt="repo-size" />
@@ -18,11 +18,12 @@
1818
- [Sobre o projeto](#-sobre-o-projeto)
1919
- [Como executar](#-como-executar)
2020
- [Como contribuir](#-como-contribuir)
21+
- [Créditos](#-créditos)
2122
- [Licença](#-licença)
2223

2324
## 💻 Sobre o projeto
2425

25-
A multipurpose system based on <a href="https://github.com/fdciabdul/InsideHeartz-WhatsApp-Bot">Inside Heartz</a> whatsapp bot
26+
Alice is a whatsapp bot made to manage coding groups.
2627

2728
### 🚀 Como executar
2829

@@ -39,27 +40,33 @@ A multipurpose system based on <a href="https://github.com/fdciabdul/InsideHeart
3940
npm install
4041
```
4142

42-
3. Rode a aplicação
43+
3. Configure o arquivo `.env`. Veja [.env.example](/.env.example)
44+
45+
4. Rode a aplicação
4346

4447
```bash
45-
node alice/index.js
48+
npm start
4649
```
4750

48-
4. Leia o código código QR usando o whatsapp
51+
5. Leia o código QR com o whatsapp
4952

5053
## 🤝 Como contribuir
5154

5255
Todo tipo de contribuição é bem-vinda, nós admiramos isso!
5356

5457
Tem algum problema? Encontrou um bug? Tem alguma dica? Abra uma [issue](https://github.com/Coding-in-community/alice/issues) descrevendo.
5558

56-
Quer contribuir com código? Pedimos que antes leia [este guia de contribuição](https://github.com/firstcontributions/first-contributions)
59+
Quer contribuir com código? Pedimos que antes leia [este guia de contribuição](/CONTRIBUTE.pt.md)
5760

5861
Não esqueça de deixar a sua ⭐, também é um modo de contribuir com o projeto ;)
5962

63+
## 👾 Créditos
64+
65+
API usada neste Bot: [whatsapp-web.js](https://github.com/pedroslopez/whatsapp-web.js)
66+
6067
## 📝 Licença
6168

62-
Esse projeto está sob a licença MIT. Veja o arquivo [LICENSE](LICENSE) para mais detalhes.
69+
Esse projeto está sob a licença MIT. Veja [LICENSE](LICENSE) para mais detalhes.
6370

6471
---
6572

0 commit comments

Comments
 (0)