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>
46 lines
1011 B
Bash
Executable File
46 lines
1011 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Gitgram - Development Server Launcher (All Projects)
|
|
# Starts backend, web, and mobile development servers
|
|
|
|
set -e
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
YELLOW='\033[1;33m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${BLUE}馃殌 Starting All Gitgram Development Servers...${NC}"
|
|
echo ""
|
|
|
|
# Check if npm-run-all is installed
|
|
if ! npm list npm-run-all > /dev/null 2>&1; then
|
|
echo -e "${YELLOW}鈿狅笍 npm-run-all not found. Installing...${NC}"
|
|
npm install --save-dev npm-run-all
|
|
fi
|
|
|
|
# Function to cleanup on exit
|
|
cleanup() {
|
|
echo ""
|
|
echo -e "${YELLOW}馃洃 Stopping all servers...${NC}"
|
|
kill 0
|
|
exit
|
|
}
|
|
|
|
trap cleanup SIGINT SIGTERM
|
|
|
|
# Display server information
|
|
echo -e "${GREEN}Starting servers:${NC}"
|
|
echo " 馃摗 Backend API: http://localhost:3000"
|
|
echo " 馃寪 Web App: http://localhost:3001"
|
|
echo " 馃摫 Mobile: Expo DevTools (check terminal)"
|
|
echo ""
|
|
echo -e "${YELLOW}Press Ctrl+C to stop all servers${NC}"
|
|
echo ""
|
|
|
|
# Start all servers
|
|
npm run dev:all
|
|
|