/deno-fullstack

Fully type safe mono repo starter kit with Deno, React, Vite, Tanstack Router, Tanstack Query, Hono, Trpc, Drizzle, Supabase, and more.

Primary LanguageTypeScriptMIT LicenseMIT

Deno Monorepo Starter Kit

Fully type safe mono repo starter kit with Deno, React, Vite, Tanstack Router, Tanstack Query, Hono, Trpc, Drizzle, Supabase, and more.

Directory Structure

.
├── apps                         # Apps
│    ├── api                     # Hono + Trpc
│    ├── supabase                # Supabase
│    ├── spa                     # React + Vite + Tanstack Router + Tanstack Query + Trpc
│    └── ...
├── packages                     # Shared packages between apps
│    ├── lib                     # Simple lib
│    ├── db                      # Database: Drizzle
│    └── ...
├── deno.jsonc                   # Deno Workspace configuration
├── LICENSE
└── README.md

Pre-requisites

What's included

Getting Started

  1. Clone the repository

  2. Install the dependencies

deno install --allow-scripts
  1. Launch the database
deno task db:start
  1. Run the migrations
cd packages/db
deno task db:migrate
  1. Launch the api server
deno task dev:api
  1. Launch the frontend
deno task dev:web

Todo

  • Add tests with Vitest
  • Docker images for each app
  • Add documentation website with Astro Starlight
  • Add a NextJS app in the monorepo

Contributing

Feel free to contribute to this starter kit. If you have any questions, feel free to open an issue.