Skip to content

runreal/deno-monorepo-template

Repository files navigation

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.