GitHub - runreal/deno-monorepo-template: A Deno Monorepo Starter Kit

1 min read Original article ↗

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
│    ├── auth                    # Auth: BetterAuth
│    ├── db                      # Database: Drizzle
│    └── ...
├── deno.jsonc                   # Deno Workspace configuration
├── LICENSE
└── README.md

Prerequisites

What's included

Getting Started

  1. Clone the repository

  2. Install the dependencies

deno install --allow-scripts
  1. Launch the database
  1. Run the migrations
  1. Launch the api server
  1. Launch the frontend
  1. Run the tests

Todo

  • Add tests with Vitest (Currently using Deno test)
  • 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.