railyard/apps/ritgram/COMMANDS.md
caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram).
AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan.
Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:18:46 +03:00

2.8 KiB

Gitgram Commands Reference

Quick reference for all available commands in the Gitgram monorepo.

๐Ÿš€ Development

Main Commands

npm run dev          # Start backend + web (recommended)
npm run dev:all      # Start backend + web + mobile
npm start            # Start production servers

Individual Projects

npm run dev:backend  # Backend only (port 3000)
npm run dev:web      # Web only (port 3001)
npm run dev:mobile   # Mobile (Expo)

Using Scripts

./scripts/dev.sh     # Backend + Web
./scripts/dev-all.sh # All projects
./scripts/start.sh   # Production (auto-builds)

๐Ÿ“ฆ Installation

npm run install:all      # Install all projects
npm run install:backend  # Backend only
npm run install:mobile  # Mobile only
npm run install:web     # Web only

Or use script:

./scripts/install-all.sh

๐Ÿ—๏ธ Build

npm run build        # Build backend + web
npm run build:all    # Build all projects
npm run build:backend
npm run build:web
npm run build:mobile

๐Ÿงช Testing

npm test            # Run all tests
npm run test:backend
npm run test:mobile
npm run test:watch  # Watch mode

๐Ÿ” Linting

npm run lint        # Check all
npm run lint:fix    # Fix all
npm run lint:backend
npm run lint:mobile
npm run lint:web

๐Ÿ—„๏ธ Database

npm run prisma:generate  # Generate Prisma client
npm run prisma:migrate   # Run migrations
npm run prisma:studio    # Open Prisma Studio

๐Ÿ“ฆ Package Management

Add Package

npm run add:backend <package>
npm run add:mobile <package>
npm run add:web <package>

Or use script:

./scripts/add-package.sh backend express
./scripts/add-package.sh mobile react-native-vector-icons
./scripts/add-package.sh web next-auth

Remove Package

npm run remove:backend <package>
npm run remove:mobile <package>
npm run remove:web <package>

Or use script:

./scripts/remove-package.sh backend express

๐Ÿงน Cleanup

npm run clean       # Clean build artifacts
npm run clean:all   # Clean everything

Or use script:

./scripts/clean-all.sh

๐Ÿ“ Quick Workflow

  1. First time setup:

    npm run install:all
    npm run prisma:generate
    npm run prisma:migrate
    
  2. Daily development:

    npm run dev
    
  3. Production deployment:

    npm run build
    npm start
    

๐Ÿ”— Server URLs

๐Ÿ’ก Tips

  • Use npm run dev for most development work
  • Use npm run dev:all only when you need mobile too
  • Production servers require builds first (npm run build)
  • All scripts support Ctrl+C to stop servers
  • Check individual project READMEs for project-specific commands