Olá, leitor(a) dessa mensagem !!! Após realizar a habilitação do telnet em meu computador, ao tentar utilizar o comando telnet localhost 8000 em um terminal onde eu iniciei o mesmo, sou apresentado as seguintes informações:
Bem-vindo ao Cliente MS Telnet
O caractere de escape é 'CTRL+ç'
Microsoft Telnet> telnet localhost 8000
Comando inválido. Digite ?/ajuda para obter ajuda
Microsoft Telnet> telnet localhost 8000
Comando inválido. Digite ?/ajuda para obter ajuda
Microsoft Telnet> telnet localhost 8000
Comando inválido. Digite ?/ajuda para obter ajuda
Microsoft Telnet>
Ademais, ao tentar utilizar o comando telnet localhost 8000 em outros terminais, como o api-alurabooks e o curso-react-alurabooks, noto que nestes não é possível realizar nenhum comando:
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)> git clone https://github.com/alura-cursos/api-alurabooks.git
Cloning into 'api-alurabooks'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 24 (delta 4), reused 2 (delta 2), pack-reused 16 (from 1)
Receiving objects: 100% (24/24), 956.21 KiB | 3.07 MiB/s, done.
Resolving deltas: 100% (7/7), done.
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)> cd api-alurabooks
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)\api-alurabooks> npm install
added 204 packages, and audited 205 packages in 11s
13 packages are looking for funding
run `npm fund` for details
16 vulnerabilities (3 low, 6 moderate, 7 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)\api-alurabooks> npm run start-auth
> json-server-api@1.0.0 start-auth
> node server.js
API disponível em http://localhost:8000
POST /public/login 401 9.078 ms - 63
POST /public/login 401 0.939 ms - 63
POST /public/registrar 200 7.000 ms - 224
POST /public/login 200 2.584 ms - 413
GET /pedidos 200 25.977 ms - 206
GET /pedidos 304 25.229 ms - -
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)> git clone https://github.com/alura-cursos/curso-react-alurabooks.git
Cloning into 'curso-react-alurabooks'...
remote: Enumerating objects: 374, done.
remote: Counting objects: 100% (128/128), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 374 (delta 107), reused 78 (delta 78), pack-reused 246 (from 1)
Receiving objects: 100% (374/374), 6.05 MiB | 4.51 MiB/s, done.
Resolving deltas: 100% (155/155), done.
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)> cd curso-react-alurabooks
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)\curso-react-alurabooks> git checkout aula-5
branch 'aula-5' set up to track 'origin/aula-5'.
Switched to a new branch 'aula-5'
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)\curso-react-alurabooks> npm install
npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
added 1446 packages, and audited 1447 packages in 37s
210 packages are looking for funding
run `npm fund` for details
36 vulnerabilities (3 low, 10 moderate, 20 high, 3 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
PS C:\Users\guilh\OneDrive\Área de Trabalho\Projeto-Alura-Books-(HTTP)\curso-react-alurabooks> npm start
Compiled successfully!
You can now view alurabooks in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.1.101:3000
Note that the development build is not optimized.
To create a production build, use npm run build.
webpack compiled successfully
No issues found.
Por fim, ao tentar executar o comando telnet localhost 8000 no cmd do windows, sou apresentado a seguinte mensagem:
HTTP/1.1 400 Bad Request
Connection: close
Conexão ao host perdida.
C:\Users\guilh>