Skip to content

A monorepo template for Deno that uses React and TanStack Router for the frontend and tRPC for the backend.

Notifications You must be signed in to change notification settings

davidchalifoux/deno-react-trpc-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno React/tRPC Template

This is a template repo for setting up a full-stack Deno monorepo with React and TanStack Router for the frontend and tRPC for the backend. It is meant as a good starting point which includes the tweaks necessary to make everything work together.

Architecture

  • The UI package is set up with TanStack Router running React as a SPA, but SSR can be configured.
  • The API package is set up with Deno's built-in web server and tRPC to make calling from the UI a breeze.

Quick start

  • Clone the repo
  • Install the Deno runtime
  • Run deno install to fetch the depenencies
  • Run deno task dev from both packages/api and packages/dev
  • Open http://localhost:3000 in your browser

Included tweaks

  • deno-vite-plugin is used to make Deno workspace imports work from the UI.
  • TanStack Router is configured to include extensions when importing from generated files.
  • Deno's jsx compiler is configured for React.

About

A monorepo template for Deno that uses React and TanStack Router for the frontend and tRPC for the backend.

Topics

Resources

Stars

Watchers

Forks