{"id":21109283,"url":"https://github.com/lucasdants/nodejs-bethehero","last_synced_at":"2026-05-03T18:34:49.437Z","repository":{"id":236666162,"uuid":"345165140","full_name":"LucasDants/NodeJS-BeTheHero","owner":"LucasDants","description":"BeTheHero is a project developed during the Semana Omnistack presented by Rockeseat. This project is a way to help ONGS.","archived":false,"fork":false,"pushed_at":"2021-07-05T19:59:40.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T06:43:45.255Z","etag":null,"topics":["celebrate","cors","express","jest","knex","sqlite3","supertest","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucasDants.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-06T18:22:21.000Z","updated_at":"2021-07-05T19:59:42.000Z","dependencies_parsed_at":"2024-04-28T06:02:02.381Z","dependency_job_id":"7e2ce63e-1c06-450b-9be6-50433d816435","html_url":"https://github.com/LucasDants/NodeJS-BeTheHero","commit_stats":null,"previous_names":["lucasdants/nodejs-bethehero"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LucasDants/NodeJS-BeTheHero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasDants%2FNodeJS-BeTheHero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasDants%2FNodeJS-BeTheHero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasDants%2FNodeJS-BeTheHero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasDants%2FNodeJS-BeTheHero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasDants","download_url":"https://codeload.github.com/LucasDants/NodeJS-BeTheHero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasDants%2FNodeJS-BeTheHero/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32579989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["celebrate","cors","express","jest","knex","sqlite3","supertest","typescript"],"created_at":"2024-11-20T00:52:53.461Z","updated_at":"2026-05-03T18:34:49.404Z","avatar_url":"https://github.com/LucasDants.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/Luksdantas/ReactNative-BeTheHero/blob/main/src/assets/logo.png\"/\u003e\n\u003c/p\u003e\n\n    \n\u003ch1 align=\"center\"\u003e\n:trophy: BeTheHero API :trophy:\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eBeTheHero is a Restfull API of \u003ca href=\"https://github.com/Luksdantas/ReactJS-BeTheHero\"\u003eBeTheHero Web\u003c/a\u003e and \u003ca href=\"https://github.com/Luksdantas/ReactNative-BeTheHero\"\u003eBeTheHero Mobile\u003c/a\u003e \u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/LuksDantas/NodeJS-BeTheHero/express\" alt=\"Express Version\"\u003e\n \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/LuksDantas/NodeJS-BeTheHero/cors\" alt=\"Cors Version\"\u003e\n \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/LuksDantas/NodeJS-BeTheHero/knex\" alt=\"Knex Version\"\u003e\n \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/Luksdantas/NodeJS-BeTheHero/sqlite3\" alt=\"Sqlite3 Version\"\u003e\n \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/Luksdantas/NodeJS-BeTheHero/celebrate\" alt=\"Celebrate Version\"\u003e\n \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/LuksDantas/NodeJS-BeTheHero/dev/typescript\" alt=\"Typescript Version\"\u003e\n  \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/LuksDantas/NodeJS-BeTheHero/dev/jest\" alt=\"Jest Version\"\u003e\n   \u003cimg  src=\"https://img.shields.io/github/package-json/dependency-version/LuksDantas/NodeJS-BeTheHero/dev/supertest\" alt=\"Supertest Version\"\u003e\n\u003c/p\u003e\n\n\u003ch1\u003e:memo:About\u003c/h1\u003e\n\u003cp\u003eBeTheHero API is a project developed during the \u003ca href=\"https://rocketseat.com.br/\"\u003eSemana Omnistack 11\u003c/a\u003e presented by \u003ca href=\"https://www.linkedin.com/school/rocketseat/\"\u003eRockeseat\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eWEB: \u003ca href=\"https://github.com/Luksdantas/ReactJS-BeTheHero\"\u003eBeTheHero Web\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAPI: \u003ca href=\"https://github.com/Luksdantas/ReactNative-BeTheHero\"\u003eBeTheHero Mobile\u003c/a\u003e\u003c/p\u003e\n\n\u003ch1\u003e:rocket: Getting started\u003c/h1\u003e\n\n```bash\n\n# Clone this repository\n$ git clone https://github.com/Luksdantas/NodeJS-BeTheHero.git\n\n# Access the project folder cmd/terminal\n$ cd NodeJS-NPS\n\n# install the dependencies\n$ npm install\n\n# Run the application in development mode\n$ npm run dev\n\n# The application will open on the port: 3333 - go to http://localhost:3333\n\n```\n\n\u003ch1\u003e🛠 BeTheHero API\u003c/h1\u003e\n\u003ca href=\"https://github.com/Luksdantas/NodeJS-BeTheHero/blob/main/Insomnia_2021-03-13.json\"\u003eInsomnia document\u003c/a\u003e\n\n\u003ch2\u003ePOST Create Ong\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`POST /ongs`\n\n```\n{\n\t\"name\": \"Example Ong\",\n\t\"email\": \"example@example.com\",\n\t\"whatsapp\": \"85900000000\",\n\t\"city\": \"São Paulo\",\n\t \"uf\": \"SP\"\n}\n```\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n{\n  \"id\": \"8035bc1a\"\n}\n```\n\n\u003ch2\u003eGET Ongs\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`GET /ongs`\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n[\n  {\n    \"id\": \"8035bc1a\",\n    \"name\": \"Example Ong\",\n    \"email\": \"example@example.com\",\n    \"whatsapp\": \"85900000000\",\n    \"city\": \"São Paulo\",\n    \"uf\": \"SP\"\n  }\n]\n```\n\n\u003ch2\u003ePOST Login\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`POST /sessions`\n\n```\n{\n\t\"id\": \"8035bc1a\"\n}\n```\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n{\n  \"name\": \"Example Ong\"\n}\n```\n\n\u003ch2\u003eGET Ong Profile\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`GET /profile headers: {authorization: 8035bc1a}`\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n[\n  {\n    \"id\": 3,\n    \"title\": \"Example incident\",\n    \"description\": \"Example description incident\",\n    \"value\": 10,\n    \"ong_id\": \"8035bc1a\"\n  }\n]\n```\n\n\u003ch2\u003eGET Incidents\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`GET /incidents`\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n[\n  {\n    \"id\": 3,\n    \"title\": \"Example incident\",\n    \"description\": \"Example description incident\",\n    \"value\": 10,\n    \"ong_id\": \"8035bc1a\",\n    \"name\": \"Example Ong\",\n    \"email\": \"example@example.com\",\n    \"whatsapp\": \"85900000000\",\n    \"city\": \"São Paulo\",\n    \"uf\": \"SP\"\n  }\n]\n```\n\n\u003ch2\u003ePOST Create Incident\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`POST /incidents headers: {authorization: 8035bc1a}`\n\n```\n{\n\t\"title\": \"Example incident\",\n\t\"description\": \"Example description incident\",\n\t\"value\": 10.00\n}\n```\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n{\n  \"id\": 3\n}\n```\n\n\u003ch2\u003eDelete Incident\u003c/h2\u003e\n\u003ch3\u003eRequest\u003c/h3\u003e\n\n`DELETE /incidents/:id`\n\n\u003ch3\u003eResponse\u003c/h3\u003e\n\n```\n```\n\n\u003ch1\u003e:bookmark_tabs: License\u003c/h1\u003e\n \u003cimg  src=\"https://img.shields.io/github/license/Luksdantas/NodeJS-BeTheHero\" alt=\"License\"\u003e\n \n \u003cp\u003eMade with :heart: by Lucas Dantas 👋🏽 \u003ca href=\"https://www.linkedin.com/in/luksdantas/\"\u003eGet in Touch!\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasdants%2Fnodejs-bethehero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasdants%2Fnodejs-bethehero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasdants%2Fnodejs-bethehero/lists"}