GET, POST, PUT and DELETE methods for rethinkDB in typescript using serverless
First setup rethinkDB in your machine https://www.rethinkdb.com/docs/install/
Run - npm install
Using administrator command promt run - serverless offline start To run the server
First run the initial database setup get method to create a database and table http://localhost:3000/initialLaunch/run
You can use the services in - http://localhost:3000/offers (GET,POST,PUT,DELETE)
Accepeted json format is -
{ "duration": "3 Day", "offers" : [{"Bank offer":"Free"},{"School offer": "Free"}] }