{"id":20432677,"url":"https://github.com/bieanimaton/nlw-heat-server","last_synced_at":"2026-04-12T12:32:16.782Z","repository":{"id":45083271,"uuid":"513268375","full_name":"BieAnimaton/nlw-heat-server","owner":"BieAnimaton","description":"Servidor desenvolvido com NodeJS, Typescript e várias bibliotecas. - Next Level Week (NLW) Heat by Rocketseat.","archived":false,"fork":false,"pushed_at":"2022-07-13T00:26:17.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T18:41:20.516Z","etag":null,"topics":["axios","cors","express","http-server","jsonwebtoken","migrations","nodejs","prisma","prisma-client","server","socket-io","sqlite","ts-node-dev"],"latest_commit_sha":null,"homepage":"https://nlw-heat-server-bie.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BieAnimaton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-12T19:29:31.000Z","updated_at":"2022-07-13T13:42:59.000Z","dependencies_parsed_at":"2022-07-13T08:21:21.621Z","dependency_job_id":null,"html_url":"https://github.com/BieAnimaton/nlw-heat-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BieAnimaton%2Fnlw-heat-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BieAnimaton%2Fnlw-heat-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BieAnimaton%2Fnlw-heat-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BieAnimaton%2Fnlw-heat-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BieAnimaton","download_url":"https://codeload.github.com/BieAnimaton/nlw-heat-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241975323,"owners_count":20051461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","cors","express","http-server","jsonwebtoken","migrations","nodejs","prisma","prisma-client","server","socket-io","sqlite","ts-node-dev"],"created_at":"2024-11-15T08:16:07.843Z","updated_at":"2026-04-12T12:32:11.764Z","avatar_url":"https://github.com/BieAnimaton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NLW Heat Server\n\n## API Documentation :books:\n#### Base URL\n```\n  http://localhost:4000\n```\n## GET:\n#### Return all user informations.\n```\n  GET /profile\n```\n| Parameter   | Type       | Description                           |\n| :---------- | :--------- | :---------------------------------- |\n| `bearer token` (HEADER AUTH)| `string` | **Mandatory**. Token for user confirmation. |\n\n\n#### Return the last 3 messages from database.\n```\n  GET /messages/last3\n```\n\n\n## POST:\n#### Creates a new message on database with relation by user (through Token).\n```\n  POST /messages\n```\n| Parameter   | Type       | Description                           |\n| :---------- | :--------- | :---------------------------------- |\n| `message` (BODY)| `string` | **Mandatory**. User message. |\n| `bearer token` (HEADER AUTH)| `string` | **Mandatory**. Token for verify each user. |\n\n\n#### Authenticates the user for post messages.\n```\n  POST /authenticate\n```\n| Parameter   | Type       | Description                                   |\n| :---------- | :--------- | :------------------------------------------ |\n| `code` (BODY)| `string` | **Mandatory**. The code inserted is the same as returned by GitHub Oauth, following the link: http://localhost:4000/github. |\n\n\n\n## How Install :bookmark_tabs:\n```\n# Create folder for store the files, like 'nlw-heat-server'\n\n# Clone the project\ngit clone https://github.com/BieAnimaton/nlw-heat-server\n\n# To install all libraries\nyarn\n\n# To start\nyarn dev\n\n# The server will start in port 4000\n# Access http://localhost:4000\n```\n\n## Features :hammer_and_wrench:\n- NodeJs\n- Typescript\n- Express\n- Prisma\n- Cors\n- Dotenv\n- Jsonwebtoken\n- Axios\n- Socket.io","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbieanimaton%2Fnlw-heat-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbieanimaton%2Fnlw-heat-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbieanimaton%2Fnlw-heat-server/lists"}