Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Rest API in Deno

I am working on creating REST API in Deno but could not get a handful resources. Could someone help me to get started with? Something similar to express router :

router.get('/', function (req, res) {

});

router.post('/savedata', function (req, res) {

});
like image 989
Sandeep Patel Avatar asked Dec 31 '22 17:12

Sandeep Patel


2 Answers

Awesome Deno is a list of existing tools built to work on Deno, and the list is actively maintained by Deno contributors. You might be able to find useful frameworks there.

Oak and ABC are two I know from the list that are actively maintained. You might also find other frameworks that fits your need better.

like image 107
Kevin Qian Avatar answered Jan 08 '23 19:01

Kevin Qian


Oak Framework is used mainly for API purposes. You can follow this awesome step-by-step guide to develop a simple REST API in deno using Deno, Typescript and Oak.

https://codehexz.com/blog/getting-started-with-deno/

like image 27
Monil Bhavsar Avatar answered Jan 08 '23 20:01

Monil Bhavsar