Nice video, would be nice a video about how to deploy using both options mentioned at the end 🦕
@deno_land3 ай бұрын
Coming soon!
@profauzan3 ай бұрын
nice, thank you!
@StephenChapman3 ай бұрын
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_land3 ай бұрын
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.
@PavelLang3 ай бұрын
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.
@GuiseppeZanotta3 ай бұрын
@@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Ай бұрын
ohh, you here! i like your tutorials.
@SDAravind3 ай бұрын
When can we see support for Sveltekit
@omomer35063 ай бұрын
Love me some Svelte
@deno_land3 ай бұрын
Soon!!
@heyitsfinnvr73652 ай бұрын
I have a have a working SvelteKit repo with deno @Milner39/OhMe iteration_2 branch (School project, that’s why the branches are weird)
@rafaelrocha39913 ай бұрын
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_land3 ай бұрын
which guide did you try? we will make an updated tutorial soon and want to make sure it covers all of your questions!
@mzhomie88803 ай бұрын
What happens on deno deploy in the free version when the 1M request are reached?
@parlor31153 ай бұрын
Day 15 of waiting for NestJS support 🙏
@Iammrunkown3 ай бұрын
It should just work. Deno supports Node
@avwie1323 ай бұрын
@@Iammrunkownwell it doesn’t and it is because of all the funky reflection things Nest does with its decorators
@Iammrunkown3 ай бұрын
@@avwie132 Yeah, that could be the case. I recommend reporting the issues
@avwie1323 ай бұрын
@@Iammrunkown it isn’t something Deno can solve but what NestJS should solve. And they’ve indicated that they don’t support Deno
@parlor31153 ай бұрын
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.
@JuicyBenji3 ай бұрын
Am i too tired or is local storage being used on server 😮
@coder_one3 ай бұрын
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....
@DeffQ3 ай бұрын
I was thinking that somebody is trolling me in this video.
@MichaelJiang-fj8kg3 ай бұрын
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.
@bintangnaufal3 ай бұрын
where did the Cs coming from?????
@aghileslounis3 ай бұрын
Wait a sec, localStorage on the server? What is this? Why is that? What are the use cases? I'm so confused
@MichaelJiang-fj8kg3 ай бұрын
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.
@aghileslounis3 ай бұрын
@@MichaelJiang-fj8kg thanks for the infos, what are the sue cases ?
@deno_land3 ай бұрын
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.
@aghileslounis3 ай бұрын
@@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
@GuiseppeZanotta3 ай бұрын
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 ?
@touristtam22 күн бұрын
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.
@bytesizedfeed3 ай бұрын
Ok but does it scale?
@deno_land3 ай бұрын
🪜
@djasnive3 ай бұрын
What do you mean ? You can use it, scale it like all api servers no ?
@SR-ti6jj3 ай бұрын
Yes, let's fracture the JS ecosystem even further
@cloudcoding0303 ай бұрын
make a nestjs tutorial, it's what everyone wants to use not hono.
@deno_land3 ай бұрын
Stay tuned!
@cloudcoding0303 ай бұрын
@@deno_land cool 😎
@djasnive3 ай бұрын
LocalStorage 😮. I'm missing something
@deno_land3 ай бұрын
It's web standard!
@djasnive3 ай бұрын
@deno_land yeah, but on the server? It's my first time seeing it 😅 Sankyouuu