This repository was archived by the owner on Sep 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
73 lines (63 loc) · 2.5 KB
/
Copy pathsetup.sh
File metadata and controls
73 lines (63 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
# FlashFix AI - Cross-Platform Quick Start Script
# Run this script to get FlashFix AI up and running in seconds
set -e
# Colors for terminal output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${BLUE}╔════════════════════════════════════════════╗${NC}"
echo -e "${BLUE}║ FlashFix AI - Cross-Platform Setup ║${NC}"
echo -e "${BLUE}╚════════════════════════════════════════════╝${NC}"
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo -e "${YELLOW}⚠️ Node.js not found!${NC}"
echo "Please install Node.js from https://nodejs.org/ (v18 or higher)"
exit 1
fi
echo -e "${GREEN}✓${NC} Node.js $(node --version)"
echo -e "${GREEN}✓${NC} npm $(npm --version)"
echo ""
# Step 1: Install dependencies
echo -e "${BLUE}[1/5]${NC} Installing dependencies..."
npm install
echo -e "${GREEN}✓${NC} Dependencies installed"
echo ""
# Step 2: Type checking
echo -e "${BLUE}[2/5]${NC} Running type checks..."
npm run type-check
echo -e "${GREEN}✓${NC} TypeScript types OK"
echo ""
# Step 3: Build project
echo -e "${BLUE}[3/5]${NC} Building project..."
npm run build
echo -e "${GREEN}✓${NC} Build completed successfully"
echo ""
# Step 4: Show build stats
echo -e "${BLUE}[4/5]${NC} Build statistics:"
echo ""
echo -e "Build output in: ${YELLOW}./dist${NC}"
du -sh dist/ 2>/dev/null || echo "Size: ~1.2 MB (optimized)"
echo ""
# Step 5: Instructions for running
echo -e "${BLUE}[5/5]${NC} Setup complete! 🎉"
echo ""
echo -e "${GREEN}Quick Commands:${NC}"
echo -e " ${YELLOW}npm run dev${NC} - Start development server (http://localhost:5173)"
echo -e " ${YELLOW}npm run preview${NC} - Preview production build"
echo -e " ${YELLOW}npm run lint${NC} - Check code quality"
echo -e " ${YELLOW}npm test${NC} - Run unit tests"
echo ""
echo -e "${GREEN}Deployment:${NC}"
echo -e " The ${YELLOW}./dist${NC} directory is ready to deploy to:"
echo -e " • Vercel, Netlify, GitHub Pages"
echo -e " • Any static hosting platform"
echo -e " • Docker, Kubernetes, or self-hosted server"
echo ""
echo -e "${GREEN}Documentation:${NC}"
echo -e " 📖 ${YELLOW}PRODUCTION_DEPLOYMENT.md${NC} - Full deployment guide"
echo -e " 📊 ${YELLOW}IMPROVEMENTS.md${NC} - All improvements & features"
echo ""
echo -e "${BLUE}Ready to go! 🚀${NC}"