Installation Guide
This guide provides step-by-step instructions for installing faneX-ID in various environments.
Requirements
Hardware Requirements
| Component | Minimum | Recommended | Production |
|---|---|---|---|
| CPU | 1 vCPU | 2 vCPU | 4+ vCPU |
| RAM | 1 GB | 4 GB | 8+ GB |
| Storage | 2 GB | 10 GB | 50+ GB |
| Network | 10 Mbps | 100 Mbps | 1 Gbps |
Software Requirements
- Operating System:
- Linux (Debian 12+, Ubuntu 22.04+, RHEL 9+)
- Windows Server 2019+ (with WSL2 or Docker)
-
macOS (for development)
-
Container Runtime:
- Docker 20.10+
-
Docker Compose 2.0+
-
Database (Production):
- PostgreSQL 14+
-
SQLite (development only)
-
Network:
- Port 8000 (Backend API)
- Port 3000 (Frontend, production)
- Port 5173 (Frontend, development)
Installation Methods
Method 1: Docker Compose (Recommended)
Step 1: Clone Repository
Step 2: Configure Environment
Required Environment Variables:
# Database Configuration
POSTGRES_PASSWORD=your_secure_password_here
POSTGRES_USER=fanexid
POSTGRES_DB=fanexiddb
# Application Settings
PROJECT_NAME=faneX-ID
DEBUG=false
SECRET_KEY= # Auto-generated if empty
# Optional: GitHub Token (for private repo access)
GITHUB_TOKEN=your_github_token_here
Step 3: Start Services
Step 4: Verify Installation
# Check container status
docker-compose ps
# View logs
docker-compose logs backend
docker-compose logs frontend
# Check backend health
curl http://localhost:8000/api/system/status
Step 5: Initial Login
-
View backend logs to get admin password:
-
Access frontend:
- Development: http://localhost:5173
-
Production: http://localhost:3000
-
Login with:
- Username:
admin - Password: (from logs)
Method 2: Home Assistant Add-on
Prerequisites
- Home Assistant installed
- HACS installed (optional, for easier installation)
Installation Steps
- Add Repository:
- Go to Settings → Add-ons → Add-on Store
- Click three dots → Repositories
-
Add:
https://github.com/faneX-ID/homeassistant-addon -
Install Add-on:
- Find faneX-ID in add-on list
- Click Install
-
Wait for installation to complete
-
Configure:
- Click Configuration tab
- Enter GitHub token (required for private repo)
- Configure other settings as needed
-
Click Save
-
Start Add-on:
- Click Start
- Wait for startup
- Access via Home Assistant sidebar (Ingress)
Method 3: Manual Installation
Backend Installation
-
Install Python 3.13+
-
Install Dependencies:
-
Configure Environment:
-
Run Migrations:
-
Start Backend:
Frontend Installation
-
Install Node.js 20+
-
Install Dependencies:
-
Build Frontend:
-
Serve Frontend:
Post-Installation Configuration
1. Admin Panel Setup
- Access Admin Panel:
- Navigate to
/adminin browser -
Login with admin credentials
-
Configure Company:
- Set company name
- Add support contact information
-
Configure base URL
-
SSL Configuration:
- Generate self-signed certificate OR
- Upload custom SSL certificate
- Configure domain
2. Database Setup
PostgreSQL (Production)
-
Create Database:
-
Update Environment:
-
Run Migrations:
3. Integration Configuration
- Access Integrations:
- Go to Integrations page
-
Browse available integrations
-
Install Integrations:
- Click Install on desired integration
- Configure credentials
-
Test connection
-
Configure System Integrations:
- Active Directory
- Microsoft Entra ID
- SMTP/Email
- GitHub (for updates)
Verification
Health Checks
-
Backend Health:
-
Frontend Access:
- Open browser to frontend URL
-
Verify login page loads
-
Database Connection:
- Check backend logs for database errors
- Verify migrations completed
Functional Tests
- Login Test:
- Login with admin credentials
-
Verify dashboard loads
-
API Test:
- Access API documentation:
http://localhost:8000/docs -
Test API endpoints
-
Integration Test:
- Install test integration
- Verify integration works
Troubleshooting
Common Issues
- Port Already in Use:
- Check what's using the port:
lsof -i :8000 - Change port in docker-compose.yml
-
Stop conflicting service
-
Database Connection Failed:
- Verify database is running
- Check connection string
- Verify credentials
-
Check firewall rules
-
Container Won't Start:
- Check logs:
docker-compose logs - Verify environment variables
- Check disk space
-
Review resource limits
-
Frontend Not Loading:
- Check backend is running
- Verify API URL in frontend config
- Check browser console for errors
- Verify CORS settings
Next Steps
After successful installation:
- Security Hardening: Security Guide
- Production Deployment: Deployment Guide
- Monitoring Setup: Maintenance Guide
- Backup Configuration: Maintenance Guide
Installation complete? Proceed to the Deployment Guide for production setup.