Skip to content

πŸͺ™ Manage your academic org's finances, membership, and activities.

Notifications You must be signed in to change notification settings

matmanna/treasurykit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TreasuryKit

πŸͺ™ Bring convenience, accountability, and community to your academic organization's governance using TreasuryKit's all-in-one platform for managing funds, events, and members.

πŸš€ Use Cases

  • Honor Societies
  • Student-run clubs
  • Class Government

🌟 Features

  • CR(eventually UD)-able Entities
    • Organizations
    • Expenses
    • Budget Items
    • Transactions
    • Reports
    • Members
      • Roles
      • Invites
      • Groups
  • UI
    • Onboarding
      • Currency Selection
    • Command palette (basic links)
    • Available/ balance

βš™ Stack

  • TypeScript - For type safety and improved developer experience
  • TanStack Start - SSR framework with TanStack Router
  • React Native - Build mobile apps using React
  • Expo - Tools for React Native development
  • TailwindCSS - Utility-first CSS for rapid UI development
  • shadcn/ui - Reusable UI components
  • oRPC - End-to-end type-safe APIs with OpenAPI integration
  • Drizzle - TypeScript-first ORM
  • SQLite/Turso - Database engine
  • Authentication - Better-Auth
  • Biome - Linting and formatting
  • Turborepo - Optimized monorepo build system

πŸ›  Development

First, install the dependencies:

pnpm install

This project uses SQLite with Drizzle ORM.

  1. Start the local SQLite database:
cd packages/db && pnpm run db:local
  1. Update your .env file in the apps/web directory with the appropriate connection details if needed.

  2. Apply the schema to your database:

pnpm run db:push

Then, run the development server:

pnpm run dev

Open http://localhost:3001 in your browser to see your fullstack application. Use the Expo Go app to run the mobile application.

πŸ– Project Structure

treasurykit/
β”œβ”€β”€ apps/
β”‚   └── web/         # Fullstack application (React + TanStack Start)
β”‚   β”œβ”€β”€ native/      # Mobile application (React Native, Expo)
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ api/         # API layer / business logic
β”‚   β”œβ”€β”€ auth/        # Authentication configuration & logic
β”‚   └── db/          # Database schema & queries

⌨ Available Scripts

  • pnpm run dev: Start all applications in development mode
  • pnpm run build: Build all applications
  • pnpm run deploy:cf: Deploy to Cloudflare Workers only
  • pnpm run deploy:vercel: Deploy to Vercel only
  • pnpm run check-types: Check TypeScript types across all apps
  • pnpm run dev:native: Start the React Native/Expo development server
  • pnpm run db:push: Push schema changes to database
  • pnpm run db:studio: Open database studio UI
  • cd packages/db && pnpm run db:local: Start the local SQLite database
  • pnpm run check: Run Biome formatting and linting