Skip to content
Demonstrações do Laboratório de Node.js e Typescript na Virada Tecnologia da PUCSP - 02/07
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demonstração
exemplos-em-aula
.gitignore
README.md

README.md

Laboratório de Node.js - Virada Tecnologica - PUC - 02/07

Ambiente

- Node.js v8+
- MongoDB

Rodando

    cd demonstracao/
    npm i
    npm i -g nodemon typescript
    npm run build
    npm start

.VSCode

- Caso esteja usando VSCode, use Ctrl (ou Command caso MAC) + Shift + B para transpilar

Rotas

- DELETE localhost:3000/{id}
- GET localhost:3000/
- GET localhost:3000/{id}
- POST localhost:3000/

    {
        "age": 22,
        "name": "Erick"
    }

- PUT localhost:3000/{id}

    {
        "age": 21,
        "name": "Wendel"
    }

Apresentação

You can’t perform that action at this time.