gittech. site

for different kinds of informations and explorations.

An open source Deno monorepo template

Published at
Jan 16, 2025

Deno Monorepo Starter Kit

Deno Monorepo Starter Kit

An deno open-source starter kit made by Runreal.

Issues Β· What's included Β· Prerequisites Β· Getting Started

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
deno task supabase:start
  1. Run the migrations
deno task db:migrate
  1. Launch the api server
deno task dev:api
  1. Launch the frontend
deno task dev:web
  1. Run the tests
deno test --allow env

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.