[SOLVED] How to create webhooks for Moralis Streams on Parse server?

Hey guys,

I’m brand new to servers, webhooks, etc. I’ve already set up a self hosted parse server on heroku, as outlines in the Moralis tutorial.

I am now trying to get started with streams, however I’m not able to figure out webhooks. Am I supposed to create the webhook using cloud functions on the parse server itself or am I supposed to register it on MongoDB or am I supposed to do both?

Any help would be apreciated.
Thanks!

You can wait until we have an integration with parse server self hosted tutorial.

For webhooks usually you have to start a separate http server that listens for webhooks requests.

It may work with a cloud function too

You can also look at this repo

That handles only the part related to streams.

If I use this server and follow the instructions I don’t need to set up a separate http server right? Also, I should upload this to heroku and replace the earlier server, right?

Yes, it should work without setting another http server.
It should have the code included for that.

Awesome. Will let you know how it goes.

Hey @cryptokid

In the parse-server-moralis-streams, where do we add the MongoDB URI and Redis URI?

my expectation is that you have first to run parse server and then to add that plugin

you could wait until we have a repository that is easier to use

I guess I’m going to use the moralis server till you guys get fully set up with the new version of everything. Hopefully y’all will keep the moralis hosted servers up until tutorials and easier repos are released.

Thanks!