Setup simple prod ready Rest API project
Currently, I’m attempting to set up a simple yet production-ready REST API project using Deno. Unfortunately, I haven’t been able to find many tutorials that demonstrate how to use Deno. Could you recommend a web framework that you would suggest using with Deno? Additionally, does anyone know how to set up the environment in Zed IDE? Currently, I’m encountering red lines in the code.
3 Replies
Hello, I've never used the Zed IDE. But for rest api you can use Hono for it:
https://hono.dev/
It's very good for serverless platform like Deno Deploy or CF Workes. With Deno you can use too express, oak.
https://docs.deno.com/examples/express_tutorial/
Hono is a small, simple, and ultrafast web framework built on Web Standards. It works on Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Netlify, AWS Lambda, Lambda@Edge, and Node.js. Fast, but not only fast.
Deno
How to use Express with Deno
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
Do you know some good tutorials or articles for setting up Hono with Deno?
You can check this tutorial:
https://www.youtube.com/watch?v=J8kZ-s-5-ms
Deno
YouTube
Build an API server with TypeScript
In this video, learn how to create a REST API using the Hono framework with Deno. We cover the process from setting up the project, creating routes, and managing data through a simple CRUD application. Using Hono with Deno makes it easy to build a scalable API that can be deployed to your favorite hosting provider.
00:00 Introducing the Hono Fr...