PHP developer here...I'm trying to write a script with Node and Express that performs basic CRUD operations on a RethinkDB database for an app idea I have. The overall idea is to create an basic endpoint that can be used to submit simple journal entries. I know enough to perform these operations using Javascript/ReQL alone but I'm struggling to understand how to make these functions available via HTTP.In PHP this is a little more straight forward - just write your functions to handle the $_POST/$_GET vars and then point a web browser or API call to the file. Leaving authentication out of it for now for the sake of simplicity, how can this be done using node and express in as few lines as possible? I'm hoping that understanding the absolute root of these operations in Node will help me better understand how to apply them in a fully RESTful scenario...
Submitted April 03, 2019 at 10:49PM by Cessna911
No comments:
Post a Comment