You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://npm-stat.com/charts.html?package=serverest"><imgalt="serverest total downloads"src="https://img.shields.io/npm/dt/serverest?style=for-the-badge"></a>
9
+
<ahref="https://opencollective.com/serverest"><imgalt="Quantidade de doadores"src="https://img.shields.io/opencollective/all/serverest?color=orange&label=Doadores%20%24&style=for-the-badge"></a>
10
+
<ahref="https://npm-stat.com/charts.html?package=serverest"><imgalt="serverest total downloads"src="https://img.shields.io/npm/dt/serverest?color=blue&style=for-the-badge"></a>
11
11
</p>
12
12
13
13
<palign="center">
14
14
<b>
15
-
<ahref="https://serverest.dev">Documentação das rotas</a> |
16
15
<ahref="https://github.com/PauloGoncalvesBH/ServeRest/blob/trunk/.github/CODE_OF_CONDUCT.md">Código de conduta</a> |
<ahref="https://github.com/PauloGoncalvesBH/ServeRest/blob/trunk/CHANGELOG.md">Histórico de alterações</a>
19
18
</b>
20
19
</p>
21
20
22
-
<palign="center">
23
-
<imgalt="Print do ServeRest iniciado no terminal"src="https://user-images.githubusercontent.com/29241659/95020650-bb01d600-0642-11eb-80dc-21bd69d80a15.png"height="200">
24
-
</p>
25
-
26
-
## Inicializar o ServeRest
27
-
28
-
### Com Node
29
-
30
-
Para iniciar o _ServeRest_ execute o seguinte comando no terminal:
31
-
32
-
```sh
33
-
npx serverest@latest
34
-
```
35
-
36
-
Não é preciso fazer instalação com `npm install` antes da execução.
37
-
38
-
### Com Docker
39
-
40
-
Você também pode executar o _ServeRest_ com o docker, utilizando o seguinte comando no terminal:
41
-
42
-
```sh
43
-
docker run -p 3000:3000 paulogoncalvesbh/serverest:latest
44
-
```
45
-
46
-
---
47
-
48
21
_ServeRest_ permite o estudo de:
49
22
- Verbos *GET, POST, PUT* e *DELETE*
50
23
- Autenticação no header
@@ -53,9 +26,11 @@ _ServeRest_ permite o estudo de:
53
26
- Contrato
54
27
- Requisições aninhadas
55
28
56
-
## Documentação
29
+
<b><i><h3align="center">Acessse <https://api.serverest.dev> para ter acesso às rotas disponibilizadas pelo ServeRest</h3></i></b>
30
+
31
+
## Documentação das rotas
57
32
58
-
Acesse **[serverest.dev](https://serverest.dev)** para ter acesso a documentação de todas as rotas, verbos, contratos e respostas possíveis.
33
+
Acesse **<https://serverest.dev>** para visualizar a documentação de todas as rotas, verbos, contratos e respostas possíveis.
59
34
60
35
<details><summary><i>Abra para ver imagem resumida das rotas disponíveis</i></summary>
61
36
@@ -65,7 +40,25 @@ Acesse **[serverest.dev](https://serverest.dev)** para ter acesso a documentaç
65
40
66
41
</details>
67
42
68
-
A documentação é aberta automaticamente ao iniciar o _ServeRest_. Para evitar o início automático envie o comando `npx serverest --nodoc`.
43
+
## Executar o ServeRest localmente
44
+
45
+
É possível utilizar de forma local em _localhost:3000_, o que pode ser útil caso precise que os dados não sejam alterados por outros usuários.
46
+
47
+
<palign="center">
48
+
<imgalt="Print do ServeRest iniciado no terminal"src="https://user-images.githubusercontent.com/29241659/96160448-5bca7e00-0eec-11eb-94d7-8222311e34c4.png"height="190">
49
+
</p>
50
+
51
+
### Utilizando NPM
52
+
53
+
Execute o seguinte comando no terminal:
54
+
55
+
```sh
56
+
npx serverest@latest
57
+
```
58
+
59
+
> Não é preciso fazer instalação com `npm install` antes da execução.
60
+
61
+
<details><summary><i>Abra para ver detalhes de configuração do ServeRest com NPM</i></summary>
69
62
70
63
## Configuração
71
64
@@ -96,6 +89,24 @@ Utilize esse comportamento nos seus testes, validando a presença/ausência dess
96
89
97
90
> Para saber mais leia o [checklist de segurança de API](https://github.com/shieldfy/API-Security-Checklist#api-security-checklist)
98
91
92
+
---
93
+
94
+
</details>
95
+
96
+
### Utilizando Docker
97
+
98
+
Execute o seguinte comando no terminal:
99
+
100
+
```sh
101
+
docker run -p 3000:3000 paulogoncalvesbh/serverest:latest
102
+
```
103
+
104
+
### Executando versão específica
105
+
106
+
Em ambos os comandos você sempre utilizará a última versão disponível. Caso queira usar uma versão específica basta substituir o `latest` pela versão desejada.
107
+
108
+
Você pode encontrar as versões disponíveis na [lista de tags no Docker Hub](https://hub.docker.com/r/paulogoncalvesbh/serverest/tags) e na [lista de versões do NPM](https://www.npmjs.com/package/serverest).
109
+
99
110
## Exemplo de automação
100
111
101
112
Os repositórios abaixo são bons exemplos de automação com boas práticas, com CI configurada e que consome o ServeRest.
@@ -117,6 +128,8 @@ Sua empresa (ou projeto) utiliza e quer constar na lista? [Abra uma issue](https
117
128
118
129
## Apoie o ServeRest
119
130
131
+
### Dando star no repositório ⭐
132
+
120
133
### Utilizando badge
121
134
122
135
Adicione ao README.md do seu repositório o badge do Serverest e demonstre seu apoio ao projeto.
@@ -129,14 +142,14 @@ Adicione ao README.md do seu repositório o badge do Serverest e demonstre seu a
129
142
130
143
### Fazendo doação
131
144
132
-
Faça doação única ou mensal a partir de 1 dólar.
145
+
Faça doação única ou mensal a partir de 1 dólar e ajude a pagar o domínio e a hospedagem de <https://serverest.dev>.
133
146
134
147
[](https://opencollective.com/serverest)
135
148
136
149
## Contributors ✨
137
150
138
151
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
Obrigado a essas pessoas incríveis ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
0 commit comments