Skip to content

Instantly share code, notes, and snippets.

@leohmoraes
Last active August 26, 2019 00:41
Show Gist options
  • Save leohmoraes/ca51d14a50164e308b9147dee5bce44f to your computer and use it in GitHub Desktop.
Save leohmoraes/ca51d14a50164e308b9147dee5bce44f to your computer and use it in GitHub Desktop.
..Anotacoes Modulo 02 - Video 10-12 - Json no Shell

rodar no modo dev

yarn dev

video 12

yarn add bcryptjs

para testar no terminal

ver json no bash

brew install jq

testar a aplicacao no bash

curl http://localhost:3333 | jq .

  new_user.json
  {
    "nome":"fulano",
    "email":"leo@teste.com",
    "password":"1233345",
  }

curl -d "@new_user.json" -X POST http://localhost:3333/users | jq .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment