Skip to content

Repository files navigation

TOTM Combat Tracker

A Table-Top Role Playing Game (TTRPG) Encounter Builder and Combat Tracker built with Convex to demonstrate the power of the Convex Sync Engine for real-time collaborative applications.

Features

  • Real-time Sync: All changes sync instantly across all connected clients
  • Theatre of the Mind: Streamlined interface optimized for narrative combat (not VTT)
  • Character & Monster Management: Create characters and reusable monster templates
  • Convex Auth Integration: Secure user authentication and data isolation

Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • A Convex account (sign up at convex.dev)

Environment Variables

This project uses Convex Auth and requires the following environment variables to be set:

  1. CONVEX_DEPLOYMENT - Your Convex deployment URL (automatically set by npx convex dev)
  2. CONVEX_SITE_URL - Your application's site URL (e.g., http://localhost:5173 for development)

The setup script (setup.mjs) will automatically configure these variables when you run npx convex dev for the first time.

Installation

  1. Clone the repository

    git clone <repository-url>
    cd totm-convex
  2. Install dependencies

    npm install
  3. Set up Convex

    npx convex dev

    This will:

    • Initialize your Convex project
    • Set up the database schema
    • Start the development server
    • Open the Convex dashboard
  4. Start the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:5173 to see the application

Architecture

This project demonstrates Convex Sync Engine capabilities:

  • Reactive Queries: UI automatically updates when data changes
  • Real-time Mutations: Changes propagate instantly to all clients
  • Type Safety: Generated TypeScript types for all data operations

Development

Available Scripts

  • npm run dev - Start both frontend and backend development servers
  • npm run build - Build the application for production

Technology Stack

Learn More

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.


Built with Convex Sync Engine

About

An TTRPG encounter builder to demo sync engine functionality from Convex

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages