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>
52 lines
1.2 KiB
Bash
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!"
|