Skip to content

potres2020/middleware-api

Repository files navigation

API's

Potres2020 checkSha256

When a report is created or updated, Ushahidi Platform / Potres2020 can send a POST request to a third- party application listening to HTTP requests on the internet.

Your application receiving the web hook call may check this signature to verify that the web hook payload was originated in the Platform.

More info: Ushahidi - Web hooks

This is a helper API to verify the sha256 digest.

API doc: here

Development & Deployment

Written in Javascript / NodeJS.

Production is currently deployed on Repl.it: https://middleware-api.potres2020.repl.co/api/potres2020/utils/checkSha256

Online IDE and deployment: https://repl.it/@potres2020/middleware-api Let me know if you need an invite.

The easiest way how to run it for yourself is like this: Run your version on Repl.it

Local setup

Requirements

NodeJS >=v12.18.3

./setup.sh

Running locally

./run.sh

Idea setup for debugging with code hot-swapping (without restart)

Install nodemon: npm install -g nodemon

And then in Idea create a Run/Debug configuration like this:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published