Build an API server with TypeScript

  Рет қаралды 12,402

Deno

Deno

Күн бұрын

Пікірлер: 47
@carlosdelgado5632
@carlosdelgado5632 3 ай бұрын
Nice video, would be nice a video about how to deploy using both options mentioned at the end 🦕
@deno_land
@deno_land 3 ай бұрын
Coming soon!
@profauzan
@profauzan 3 ай бұрын
nice, thank you!
@StephenChapman
@StephenChapman 3 ай бұрын
Hi! Do you recommend Hono over a Deno-only implementation of a REST API server? I followed a tutorial the other day that just used Deno's inbuilt server features and it worked a treat. I'm trying to unblur the line of what all I could/should use Deno and its standard library for vs. bringing in other packages/libraries/frameworks! Thanks so much for the tutorial; I'm really enjoying Deno thus far. =)
@deno_land
@deno_land 3 ай бұрын
It's totally up to you and what your goals are! Each has its pros and cons. Hono is nice because it comes with a bunch of middleware so you can get started easily, but rolling your own is fine too, since you get to minimize your dependencies.
@PavelLang
@PavelLang 3 ай бұрын
Hono is the best choice today as a router. If you have a small API you will not see a difference. But when your API grows, you will see great router and middleware; sub-applications performance. Just as with everything: Try, learn, earn and joy balance.
@GuiseppeZanotta
@GuiseppeZanotta 3 ай бұрын
@@PavelLang Thanks for the recommendation tbh, I was going to roll my own framework but the world could use 1 less Js framework 🤣. As much as I love PHP I have to say Deno, is giving Laravel a run for its money.
@kauasacramento2380
@kauasacramento2380 Ай бұрын
ohh, you here! i like your tutorials.
@SDAravind
@SDAravind 3 ай бұрын
When can we see support for Sveltekit
@omomer3506
@omomer3506 3 ай бұрын
Love me some Svelte
@deno_land
@deno_land 3 ай бұрын
Soon!!
@heyitsfinnvr7365
@heyitsfinnvr7365 2 ай бұрын
I have a have a working SvelteKit repo with deno @Milner39/OhMe iteration_2 branch (School project, that’s why the branches are weird)
@rafaelrocha3991
@rafaelrocha3991 3 ай бұрын
even though it’s catered more to Deno Deploy, I would really love to have more clarity on how to deploy this exact stack to AWS Lambda - tried the official guide but Hono is unable to get the proxied HTTP request from the API Gateway. Deno is just so suitable for lambdas that I would really love to adopt it for everything lambda related 😃
@deno_land
@deno_land 3 ай бұрын
which guide did you try? we will make an updated tutorial soon and want to make sure it covers all of your questions!
@mzhomie8880
@mzhomie8880 3 ай бұрын
What happens on deno deploy in the free version when the 1M request are reached?
@parlor3115
@parlor3115 3 ай бұрын
Day 15 of waiting for NestJS support 🙏
@Iammrunkown
@Iammrunkown 3 ай бұрын
It should just work. Deno supports Node
@avwie132
@avwie132 3 ай бұрын
@@Iammrunkownwell it doesn’t and it is because of all the funky reflection things Nest does with its decorators
@Iammrunkown
@Iammrunkown 3 ай бұрын
@@avwie132 Yeah, that could be the case. I recommend reporting the issues
@avwie132
@avwie132 3 ай бұрын
@@Iammrunkown it isn’t something Deno can solve but what NestJS should solve. And they’ve indicated that they don’t support Deno
@parlor3115
@parlor3115 3 ай бұрын
The Deno team has a big incentive to push for support or contribute to the NestJS project to enable it. Most of the frameworks available on Deno right now are either express or NextJS clones which means that the developer experience is dogwater. If you want to develop a large-scale backend app, then you'll need better tooling and for TS to be the defacto in your codebase, and ofc you'll need DI. Only NestJS provides DI and all of other features combined on Node, but none for Deno. I mean there's Danet, but I feel that it'll end up like DestJS. So yeah, Ryan if you ever read this, give us NestJS-style DI (constructor / method injection) or Bun will win forever.
@JuicyBenji
@JuicyBenji 3 ай бұрын
Am i too tired or is local storage being used on server 😮
@coder_one
@coder_one 3 ай бұрын
Yes, Deno is trying to be as Web standards compliant as possible. The saddest thing is that someone might actually get the idea to use this (localStorage API) in real backend applications....
@DeffQ
@DeffQ 3 ай бұрын
I was thinking that somebody is trolling me in this video.
@MichaelJiang-fj8kg
@MichaelJiang-fj8kg 3 ай бұрын
The localStorage API in Deno stores data in a specific location under the user's home directory: - On Windows: %USERPROFILE%\AppData\Local\Deno\localStorage - On macOS: ~/Library/Deno/localStorage - On Linux: ~/.local/share/deno/localStorage It should be noted: 1. The implementation of localStorage in Deno is based on the file system. 2. Data is stored in files separately by domain name. 3. The default maximum storage limit for each domain name is 10MB. 4. This storage is persistent, and the data still exists after restarting Deno.
@bintangnaufal
@bintangnaufal 3 ай бұрын
where did the Cs coming from?????
@aghileslounis
@aghileslounis 3 ай бұрын
Wait a sec, localStorage on the server? What is this? Why is that? What are the use cases? I'm so confused
@MichaelJiang-fj8kg
@MichaelJiang-fj8kg 3 ай бұрын
The localStorage API in Deno stores data in a specific location under the user's home directory: - On Windows: %USERPROFILE%\AppData\Local\Deno\localStorage - On macOS: ~/Library/Deno/localStorage - On Linux: ~/.local/share/deno/localStorage It should be noted: 1. The implementation of localStorage in Deno is based on the file system. 2. Data is stored in files separately by domain name. 3. The default maximum storage limit for each domain name is 10MB. 4. This storage is persistent, and the data still exists after restarting Deno.
@aghileslounis
@aghileslounis 3 ай бұрын
@@MichaelJiang-fj8kg thanks for the infos, what are the sue cases ?
@deno_land
@deno_land 3 ай бұрын
We used localStorage as an example for this tutorial. In the real world, one might do it for prototyping /caching purposes. But for production use case we suggest using a database or other durable persistent data storage.
@aghileslounis
@aghileslounis 3 ай бұрын
@@deno_land ok perfect, now that's clear. But I think you should mention that in the docs when an API is not for production but jsut for testing and playing
@GuiseppeZanotta
@GuiseppeZanotta 3 ай бұрын
Can somebody explain to me how this works in production. I'm coming from PHP, Nginx setup on FreeBSD.... My understanding is that 1.) I need to have deno installed on my freeBSD server, and running as a background process? 2.) I need to configure deno to serve the hono application? 3.) configure cloudflare DNS ?
@touristtam
@touristtam 22 күн бұрын
1) Yes. 2) Yes, but it is more akin to the barebone PHP localhost you might want to keep that Nginx for reverse proxy. 3) that's outside the scope of the application but yes most definitely. If you can host all that into the cloud in one of the existing providers, you should be able to configure that without having to fiddle with the server directly. Otherwise all your existing knowledge should apply.
@bytesizedfeed
@bytesizedfeed 3 ай бұрын
Ok but does it scale?
@deno_land
@deno_land 3 ай бұрын
🪜
@djasnive
@djasnive 3 ай бұрын
What do you mean ? You can use it, scale it like all api servers no ?
@SR-ti6jj
@SR-ti6jj 3 ай бұрын
Yes, let's fracture the JS ecosystem even further
@cloudcoding030
@cloudcoding030 3 ай бұрын
make a nestjs tutorial, it's what everyone wants to use not hono.
@deno_land
@deno_land 3 ай бұрын
Stay tuned!
@cloudcoding030
@cloudcoding030 3 ай бұрын
@@deno_land cool 😎
@djasnive
@djasnive 3 ай бұрын
LocalStorage 😮. I'm missing something
@deno_land
@deno_land 3 ай бұрын
It's web standard!
@djasnive
@djasnive 3 ай бұрын
@deno_land yeah, but on the server? It's my first time seeing it 😅 Sankyouuu
Build a Command Line Utility
11:01
Deno
Рет қаралды 7 М.
Обхитрили!
00:43
Victoria Portfolio
Рет қаралды 2,1 МЛН
На ЭТО можно смотреть БЕСКОНЕЧНО 👌👌👌
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 4,4 МЛН
Build a Real-Time WebSocket Application
8:55
Deno
Рет қаралды 10 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 922 М.
How I Take Notes With Neovim (as a highschool student)
7:08
Пробуем Deno на примере простейшего сервера и React SSR
22:42
devschacht “Девшахта”
Рет қаралды 23 М.
Cookie Auth with Hono
11:39
Supabase
Рет қаралды 2,7 М.
The Right Way To Build REST APIs
10:07
Awesome
Рет қаралды 121 М.
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Sam Meech-Ward
Рет қаралды 134 М.
Deno 2 vs Bun: Which Should You Choose?
7:52
Better Stack
Рет қаралды 15 М.
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 120 М.
Обхитрили!
00:43
Victoria Portfolio
Рет қаралды 2,1 МЛН