Run Nest.js with Deno2.0
Hi, congrats for Deno2.0 release.
Now I'm trying to run my Nest.js project with Deno2.0
But I'm a noob and do not know how.(I didn't totally understood Deno2.0 supports npm modules)
What is the standard or official way to run nest with Deno2.0? Just wait for Nest team to support Deno2.0?
14 Replies
Hey, just install nestjs via npm and use deno to run commands like start, dev, etc. That's it
Could you provide me full commands?
@ink This worked for me
pnpx @nestjs/cli new deno-2-nestjs
and I chosed pnpm for install
After that cd into the project and run deno task dev
and should work!
I tried directly with deno and did not work deno -A npm:@nestjs/cli new deno-2-nestjs
So for more complex scenarios (like this one, running nestjs) we have to use a know package manager like npm, pnpm and use deno run the app, does that make sense?I removed my node and npm to make sure deno runs it but I failed.
I exactly followed your instruction except for the project name.
You are right 🤔
I think I got it working following this https://uptownhr.com/blog/nest-on-deno/ I'm creating a repro
NestJS on Deno?
Running NestJS on Deno (Yes, It's Possible!)
GitHub
GitHub - fro-profesional/deno-2-nestjs
Contribute to fro-profesional/deno-2-nestjs development by creating an account on GitHub.
thx I'll try this after few hours
seems working:cookie_deno:
:deno_thankyou:
Hopefully, in the future, we can scaffold an app using the NestJS CLI
Although I think it would be a matter of adding the dependencies to the deno.json? I'll try that later
I tried using TypeORM for the project but encountered some issues.
For now, I’m done with it and will wait until either NestJS or Deno officially supports the other.
You can try Danet. It’s Deno’s NestJS equivalent.
It handles HTTP, Websocket, KVQueue Worker, Scheduled Task, SSE.
Probably the most comprehensive documentation in Deno first userland.
https://github.com/Savory/Danet
https://danet.land
GitHub
GitHub - Savory/Danet: The most mature backend framework for Deno. ...
The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers ! - Savory/Danet
Danet
The most mature backend framework for Deno