Quickstart Guide
Get SociApp up and running quickly using Docker. This guide will have you managing your neighborhood association in under 5 minutes.Prerequisites
Before you begin, ensure you have:- Docker and Docker Compose installed on your system
- At least 2GB of available RAM
- Ports 80, 3000, and 3001 available
Quick Start with Docker
cd backend
cat > .env << EOF
# Database Configuration
DB_HOST=localhost
DB_PORT=3306
DB_USERNAME=your_db_user
DB_PASSWORD=your_db_password
DB_DATABASE=sociapp
# Application Settings
PORT=3000
FRONTEND_URL=http://localhost:5173
# JWT Configuration
JWT_SECRET=your-secure-jwt-secret-key
JWT_EXPIRES_IN=24h
# Email Configuration (optional)
MAIL_HOST=smtp.example.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your-email-password
EOF
Make sure to replace the placeholder values with your actual configuration, especially
JWT_SECRET which should be a strong random string.Using the Control Script
SociApp includes a convenient control script for managing Docker containers:- Build & Start: Rebuild and start containers
- Restart: Restart running containers
- Stop: Stop containers
- Logs: View container logs in real-time
Next Steps
Installation Guide
Detailed installation instructions including manual setup
Configuration
Configure database, email, and authentication settings
User Management
Learn how to manage members and permissions
API Reference
Explore the backend API endpoints
Troubleshooting
Containers Won’t Start
Check if ports are already in use:Database Connection Errors
Ensure your database is running and credentials in.env are correct:
Frontend Can’t Connect to Backend
Verify theVITE_API_URL build argument in docker-compose.yml matches your backend URL.
