http://localhost:4000
GET /profile
Parameter | Type | Description |
---|---|---|
bearer token (HEADER AUTH) |
string |
Mandatory. Token for user confirmation. |
GET /messages/last3
POST /messages
Parameter | Type | Description |
---|---|---|
message (BODY) |
string |
Mandatory. User message. |
bearer token (HEADER AUTH) |
string |
Mandatory. Token for verify each user. |
POST /authenticate
Parameter | Type | Description |
---|---|---|
code (BODY) |
string |
Mandatory. The code inserted is the same as returned by GitHub Oauth, following the link: http://localhost:4000/github. |
# Create folder for store the files, like 'nlw-heat-server'
# Clone the project
git clone https://github.com/BieAnimaton/nlw-heat-server
# To install all libraries
yarn
# To start
yarn dev
# The server will start in port 4000
# Access http://localhost:4000
- NodeJs
- Typescript
- Express
- Prisma
- Cors
- Dotenv
- Jsonwebtoken
- Axios
- Socket.io