About | Technology | Layout | Getting Started | Usage | Roadmap | Contributing | License
Be The Hero is a platform to connect NGOs, institutions and volunteers who want to be the hero of a cause.
- Mobile: Be The Hero on Expo
This project was developed with the following technologies:
- Clone the repository:
git clone https://github.com/WesGtoX/be-the-hero.git
cd be-the-hero/
- Install the dependencies:
yarn install
- Run database migrations:
npx knex migrate:latest
- Run the API:
yarn dev
- To run the tests:
yarn test
- Access the Web Application project folder:
cd frontend/
- Install dependencies:
yarn install
- Run the Web APP:
yarn start
- Access the Mobile project folder:
cd mobile/
- Install dependencies:
yarn install
- Run the Mobile APP:
yarn start
- Android
expo build:android -t apk
- iOS
expo build:ios
Obs: If you receive the error: connect ECONNREFUSED 127.0.0.1: 19001
Leave it running in another terminal window:
expo startThen run the build again.
Method | Endpoint | Description |
---|---|---|
POST |
/sessions |
ONG login. |
POST |
/ongs |
Register a ONG. |
GET |
/ongs |
List all ONGs. |
POST |
/incidents |
Register a incidents. |
GET |
/incidents |
List all incidents. |
GET |
/profile |
List a specific profile. |
DELETE |
/incidents/:id |
Delete a incidents. |
- GET: Fetching information from the back-end.
- POST: Create information on the back-end.
- PUT: Changing information on the back-end.
- DELETE: Delete an information on the back-end.
- Query Params: Named parameters sent on the route after the
?
(Filters, Pagination). - Route Params: Parameters used to identify resources.
- Request Body: Request body, used to create or change resources.
-
SQL: MySQL, SQLite, PostgreSQL, Oracle, Microsoft SQL Server.
-
NoSQL: MongoDB, CouchDB, etc.
-
Driver: SELECT * FROM users.
-
Query Builder: table('users').select('*').where().
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project.
- Create your Feature Branch
git checkout -b feat/my-feature
. - Commit your Changes
git commit -m 'feat: My new feature'
. - Push to the Branch
git push origin feat/my-feature
. - Open a Pull Request.
After the merge of your pull request is done, you can delete your branch.
Distributed under the MIT License. See LICENSE for more information.
Made with ♥ by Wesley Mendes 👋