3.7 KiB
Windows Deployment Instructions
Quick Deployment to D:\hosted\familyhub (or any location)
Step 1: Download and Extract
- Download
familyhub-windows.zip - Extract to your desired location (e.g.,
D:\hosted\familyhub) - Open Command Prompt in that folder
Step 2: Check Prerequisites (Optional but Recommended)
check-requirements.bat
This verifies that Python and Node.js are installed.
Step 3: Download Source Code (REQUIRED!)
download-source.bat
IMPORTANT: You MUST run this before setup.bat!
This script will:
- Download complete source code from Gitea
- Copy backend/ and frontend/ folders with all files
- Works with or without Git installed
Step 4: Run Setup (One-Time)
setup.bat
This will:
- Create Python virtual environment
- Install all dependencies
- Initialize database with demo data
Step 5: Start the Application
Choose one option:
Option A - Two Separate Terminals:
start-backend.bat (Terminal 1)
start-frontend.bat (Terminal 2)
Option B - Single Command:
start-all.bat
Step 6: Access the Application
- Frontend: http://localhost:5173
- Backend API: http://localhost:8001/docs
- Login:
jess/password123
Files Overview
Included Scripts
check-requirements.bat- Verify Python and Node.js are installeddownload-source.bat- Download source code from Gitea (RUN FIRST!)setup.bat- One-time setup (creates venv, installs dependencies, initializes database)start-backend.bat- Starts FastAPI backend serverstart-frontend.bat- Starts Vite development serverstart-all.bat- Starts both backend and frontend in separate windowsstop-all.bat- Stops all running services
Included Configuration
backend/.env- Backend configuration (database path, CORS settings)frontend/.env- Frontend configuration (API URL points to localhost)backend/init_db.py- Database initialization with 12 demo chores
Documentation
QUICK_START.txt- Quick reference guideDEPLOYMENT.md- This fileREADME.md- Complete setup and usage guide
Important Notes
-
Source Code Download: The
download-source.batscript automatically downloads the complete Family Hub source code from Gitea. It works with or without Git installed. -
Database Location: The SQLite database will be created at
backend\data\family_hub.dbwhen you run setup. -
Port Configuration: The setup uses:
- Backend:
localhost:8001 - Frontend:
localhost:5173
- Backend:
-
Prerequisites: Python 3.9+ and Node.js 16+ must be installed and added to PATH. Use
check-requirements.batto verify.
Next Steps After Setup
- Test login with admin account (
jess/password123) - Explore the 12 pre-loaded demo chores
- Try creating new chores and marking them complete
- Review the Settings page (admin access only)
- Check API documentation at http://localhost:8001/docs
Troubleshooting
If download-source.bat fails:
- Check internet connection to Gitea server (10.0.0.127)
- Try accessing https://gitea.hideawaygaming.com.au/jessikitty/family-hub in a browser
- If using PowerShell method, ensure TLS 1.2 is enabled
If setup fails with "No such file or directory":
- YOU FORGOT TO RUN download-source.bat FIRST!
- The source code files must be downloaded before setup can run
If setup fails, check:
- Python is in PATH:
python --version - Node.js is in PATH:
node --version - npm is in PATH:
npm --version - Use
check-requirements.batto verify all prerequisites
For port conflicts:
- Run
stop-all.batto kill all services - Or manually:
netstat -ano | findstr :8001thentaskkill /PID <PID> /F
For detailed troubleshooting, see the main README.md file.