{"id":20114334,"url":"https://github.com/wesgtox/be-the-hero","last_synced_at":"2026-04-11T03:03:16.370Z","repository":{"id":53197063,"uuid":"249885985","full_name":"WesGtoX/be-the-hero","owner":"WesGtoX","description":"Created on OmniStack Week 11.0.","archived":false,"fork":false,"pushed_at":"2021-10-14T12:56:10.000Z","size":1778,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:33:42.754Z","etag":null,"topics":["android","axios","celebrate","expo","expo-mail-composer","express","heroku","intl","ios","javascript","jest","netlify","nodejs","postgresql","react","react-dom","react-icons","react-native","react-navigation","supertest"],"latest_commit_sha":null,"homepage":"https://bethehero.wesleymendes.com.br","language":"JavaScript","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/WesGtoX.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}},"created_at":"2020-03-25T04:22:14.000Z","updated_at":"2023-03-09T02:12:02.000Z","dependencies_parsed_at":"2022-09-08T19:12:20.038Z","dependency_job_id":null,"html_url":"https://github.com/WesGtoX/be-the-hero","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WesGtoX/be-the-hero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesGtoX%2Fbe-the-hero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesGtoX%2Fbe-the-hero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesGtoX%2Fbe-the-hero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesGtoX%2Fbe-the-hero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WesGtoX","download_url":"https://codeload.github.com/WesGtoX/be-the-hero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesGtoX%2Fbe-the-hero/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31667034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["android","axios","celebrate","expo","expo-mail-composer","express","heroku","intl","ios","javascript","jest","netlify","nodejs","postgresql","react","react-dom","react-icons","react-native","react-navigation","supertest"],"created_at":"2024-11-13T18:29:13.405Z","updated_at":"2026-04-11T03:03:16.329Z","avatar_url":"https://github.com/WesGtoX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://github.com/WesGtoX/be-the-hero\"\u003e\n    \u003cimg src=\"frontend/src/assets/logo-be-the-hero.png\" alt=\"Be The Hero\" title=\"Be The Hero\" width=\"250px\"\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://app.netlify.com/sites/bethehero-wes/deploys\" alt=\"Netlify Status\"\u003e\n    \u003cimg src=\"https://api.netlify.com/api/v1/badges/0f800fdc-5a62-4f73-ba6b-b150b929e209/deploy-status\" /\u003e\n  \u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#about-the-project\"\u003eAbout\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#technology\"\u003eTechnology\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#layout\"\u003eLayout\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#how-to-contribute\"\u003eContributing\u003c/a\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Be The Hero CI\" src=\"https://github.com/WesGtoX/be-the-hero/actions/workflows/node.js.yml/badge.svg\" /\u003e\n  \u003cimg alt=\"GitHub top language\" src=\"https://img.shields.io/github/languages/top/wesgtox/be-the-hero?style=plastic\" /\u003e\n  \u003cimg alt=\"GitHub language count\" src=\"https://img.shields.io/github/languages/count/wesgtox/be-the-hero?style=plastic\" /\u003e\n  \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/wesgtox/be-the-hero?style=plastic\" /\u003e\n  \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/wesgtox/be-the-hero?style=plastic\" /\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/wesgtox/be-the-hero?style=plastic\" /\u003e\n\u003c/p\u003e\n\n\n## About the Project\n\nBe The Hero is a platform to connect NGOs, institutions and volunteers who want to be the hero of a cause.\n\n- Mobile: [Be The Hero on Expo](https://expo.io/@wesgtox/bethehero)\n\n\n## Technology\n\nThis project was developed with the following technologies:\n\n- [Node.js](https://nodejs.org/)\n- [Yarn](https://yarnpkg.com/)\n- [React](https://reactjs.org/)\n- [React Native](https://reactnative.dev/)\n- [Expo](https://expo.dev/)\n\n\n## Layout\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://expo.io/@wesgtox/bethehero\"\u003e\n    \u003cimg src=\"mobile/screenshots/screenshot_01.jpg\" alt=\"Be The Hero Mobile\" title=\"Be The Hero Mobile\" width=\"250px\"\u003e\n  \u003c/a\u003e\n    \u003ca href=\"https://expo.io/@wesgtox/bethehero\"\u003e\n    \u003cimg src=\"mobile/screenshots/screenshot_02.jpg\" alt=\"Be The Hero Mobile\" title=\"Be The Hero Mobile\" width=\"250px\"\u003e\n  \u003c/a\u003e\n    \u003ca href=\"https://expo.io/@wesgtox/bethehero\"\u003e\n    \u003cimg src=\"mobile/screenshots/screenshot_03.jpg\" alt=\"Be The Hero Mobile\" title=\"Be The Hero Mobile\" width=\"250px\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/en/download/)\n- [Yarn](https://yarnpkg.com/getting-started/install)\n\n\n### Install and Run\n\n- Clone the repository:\n```bash\ngit clone https://github.com/WesGtoX/be-the-hero.git\ncd be-the-hero/\n```\n\n#### Run the API:\n1. Install the dependencies:\n```bash\nyarn install\n```\n2. Run database migrations:\n```bash\nnpx knex migrate:latest\n```\n\n3. Run the API:\n```bash\nyarn dev\n```\n\n4. To run the tests:\n```bash\nyarn test\n```\n\n#### Run the Web Application:\n1. Access the Web Application project folder:\n```bash\ncd frontend/\n```\n\n2. Install dependencies:\n```bash\nyarn install\n```\n\n3. Run the Web APP:\n```bash\nyarn start\n```\n\n#### Run the Mobile Application:\n1. Access the Mobile project folder:\n```bash\ncd mobile/\n```\n\n2. Install dependencies:\n```bash\nyarn install\n```\n\n3. Run the Mobile APP:\n```bash\nyarn start\n```\n\n#### Building Standalone Apps:\n- Android\n```bash\nexpo build:android -t apk\n```\n\n- iOS\n```bash\nexpo build:ios\n```\n\n**Obs:** If you receive the error: `connect ECONNREFUSED 127.0.0.1: 19001`\n\u003e Leave it running in another terminal window:\n\u003e ```bash\n\u003e expo start\n\u003e ```\n\u003e Then run the build again.\n\n\n## Usage\n\n### Routes / Resources\n\n| Method   | Endpoint         | Description              |\n| -------- | ---------------- | ------------------------ |\n| `POST`   | `/sessions`      | ONG login.               |\n| `POST`   | `/ongs`          | Register a ONG.          |\n| `GET`    | `/ongs`          | List all ONGs.           |\n| `POST`   | `/incidents`     | Register a incidents.    |\n| `GET`    | `/incidents`     | List all incidents.      |\n| `GET`    | `/profile`       | List a specific profile. |\n| `DELETE` | `/incidents/:id` | Delete a incidents.      |\n\n### HTTP methods\n\n- **GET:** _Fetching information from the back-end._\n- **POST:** _Create information on the back-end._\n- **PUT:** _Changing information on the back-end._\n- **DELETE:** _Delete an information on the back-end._\n\n\n### Parameter types\n\n- **Query Params:** _Named parameters sent on the route after the `?` (Filters, Pagination)._\n- **Route Params:** _Parameters used to identify resources._\n- **Request Body:** _Request body, used to create or change resources._\n\n\n### Database\n\n- **SQL:** _MySQL, SQLite, PostgreSQL, Oracle, Microsoft SQL Server._\n- **NoSQL:** _MongoDB, CouchDB, etc._\n\n- **Driver:** _SELECT * FROM users._\n- **Query Builder:** _table('users').select('*').where()._\n\n\n## Roadmap\n\nSee the [open issues](https://github.com/WesGtoX/be-the-hero/issues) for a list of proposed features (and known issues).\n\n\n## How to contribute\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project.\n2. Create your Feature Branch `git checkout -b feat/my-feature`.\n3. Commit your Changes `git commit -m 'feat: My new feature'`.\n4. Push to the Branch `git push origin feat/my-feature`.\n5. Open a Pull Request.\n\nAfter the merge of your pull request is done, you can delete your branch.\n\n\n## License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for more information.\n\n---\n\nMade with ♥ by [Wesley Mendes](https://wesleymendes.com.br/) :wave:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesgtox%2Fbe-the-hero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesgtox%2Fbe-the-hero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesgtox%2Fbe-the-hero/lists"}