Git Product home page Git Product logo

bethehero-backend's Introduction

Be the Hero

Backend part for the Be the Hero application.

Technologies

  • Nodejs
  • Express
  • SQLite
  • Knex

Routes

  • /sessions send POST with the your charity ID on the body, if the cheity exists the response will be { name: CHARITY_NAME } .

  • /ongs send POST with a body that contains name, email, whatsapp, city, uf. if succsessfull the response will be { id: ONG_ID } .

  • /ongs send GET, will list all the ongs registered on the database.

  • /incidents send POST with a body containing title, description and value, also, you'll need on the headers { authorization: CHARITY_ID } .

  • /incidents send GET to get the all incidents, theres pagianation you can send on the query ?page=NUMBER there a limit of 5 incidents per page.

  • /incidents/:id send DELETE with the incident ID on the route and on the headers { authorization: CHARITY_ID } .

  • /profile list all incidents from a charity sending on the headers { authorization: CHARITY_ID } .

bethehero-backend's People

Contributors

ypazevedo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.