railyard/apps/ritgram/test-repos.sh
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

52 lines
1.2 KiB
Bash

#!/bin/bash
echo "๐Ÿงช Testing Universal Repository Features"
echo "========================================"
echo ""
# Start backend in background
cd /Users/arhansubasi/gitgram/backend
npm run dev > /dev/null 2>&1 &
BACKEND_PID=$!
echo "โณ Waiting for server to start..."
sleep 5
echo ""
echo "โœ… Testing Repository Search"
curl -s "http://localhost:3001/api/repositories/search?q=vscode" | head -c 200
echo "..."
echo ""
echo ""
echo "โœ… Testing Get Repository"
curl -s "http://localhost:3001/api/repositories/microsoft/vscode" | head -c 200
echo "..."
echo ""
echo ""
echo "โœ… Testing Trending Repos"
curl -s "http://localhost:3001/api/repositories/trending" | head -c 200
echo "..."
echo ""
echo ""
echo "๐ŸŽ‰ Backend is ready!"
echo ""
echo "Available endpoints:"
echo " GET /api/repositories/search?q=vscode"
echo " GET /api/repositories/trending"
echo " GET /api/repositories/:owner/:name"
echo " GET /api/repositories/:owner/:name/posts"
echo " POST /api/repositories/:owner/:name/follow"
echo ""
echo "To create a post about any repo:"
echo ' POST /api/posts'
echo ' Body: { "content": "Great project!", "repoOwner": "microsoft", "repoName": "vscode" }'
echo ""
# Kill backend
kill $BACKEND_PID 2>/dev/null
echo "โœ… Tests complete!"