Asguho
Asguho5w ago

Running vite and a deno server in workspaces

I want to write "deno task dev" and it will then start both the frontend (written with vite) and the deno backend at the same time. the closest i got was this:
{
"workspace": [
"./server",
"./client"
],
"nodeModulesDir": "auto"
}
{
"workspace": [
"./server",
"./client"
],
"nodeModulesDir": "auto"
}
deno task --recursive dev
deno task --recursive dev
but it just starts the vite server and occupies the terminal, so i have to pres crtl+c inorder for the backend server to start
2 Replies
OffBy0x01
OffBy0x015w ago
Might be helpful - not sure how it applies to workspaces though https://docs.deno.com/examples/tanstack_tutorial/
Deno
Build an app with Tanstack and Deno
Complete guide to building applications with Tanstack and Deno. Learn how to implement Query for data fetching, Router for navigation, manage server state, and create type-safe full-stack applications.
Asguho
AsguhoOP4w ago
Thank you, i will take look. I think tanstack also runs on vite, so it should be the same

Did you find this page helpful?