so I'm working developing a fair bit of business logic in the beforeSave/afterSave/etc. type webhooks using Parse.com. As a Javacscript/Parse novice, I'm finding the flow slightly tedious and am wondering if I am approaching it correctly.
Repeat ad nauseam.
Can I be using something like Rest Console/Postman to set up my JSON request? Can I be checking more syntax locally instead of having to run Parse Deploy every time I change an arbitrary piece of code? Is there any sort of improved debugging I could be using like XCode/etc?
Thanks.
In Parse CLI, there's a command to do the following:
develop app
Monitors for changes to source files and uploads updated files to Parse.
This will also monitor the parse INFO log for any new log messages and write
out updates to the terminal. This requires an app to be provided, to
avoid running develop on production apps accidently.
Run parse develop MyApp
inside your Parse Cloud code root folder (where you execute parse deploy
).
Once done, the terminal will be interactive - any changes made on the source code will be updated automatically. I created a copy of MyApp to differentiate between Production/Development so I don't accidentally push codes.
Then I use Postman, to check my response like following:
p/s: Use x-www-form-urlencoded
on Postman to request with parameter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With