Prerequisites
Before you begin, ensure you have the following installed:- PHP 7.4+ (PHP 8.x recommended)
- Composer - PHP dependency manager
- Node.js and npm (includes npx)
- MySQL/MariaDB - Database server
- Docker Desktop (optional, for Docker setup)
Quick Setup Options
- Docker (Recommended)
- Local Setup
Docker provides the fastest and most consistent setup experience.This script automatically updates your This command will:
Switch to Docker configuration
.env file with Docker database credentials:DB_HOST=dbDB_USER=zoo_userDB_PASS=zoo_password
Build and start containers
- Build the PHP/Apache container
- Start MariaDB 11.4 database
- Initialize the database with seed data
- Compile assets automatically
Docker Management Commands
Database Configuration
Zoo Arcadia uses environment variables for database configuration. The.env file is automatically managed by the switch scripts.
Default Credentials
Default user credentials are created during database seeding. Check the
database/06_seed_data.sql file for the complete list of seeded users and their roles (Admin, Veterinary, Employee, Accountant).- Admin - Full system access
- Veterinary - Animal health and reports management
- Employee - Limited actions (maintenance, feeding)
- Accountant - Financial management
Asset Compilation
Zoo Arcadia uses Gulp to compile SCSS and JavaScript files.- File watching for automatic recompilation
- BrowserSync for live reload
- Source maps for debugging
Next Steps
Now that you have Zoo Arcadia running:- Explore the front-end pages (animals, habitats, services)
- Access the back-office with appropriate credentials
- Review the Installation Guide for detailed configuration options
- Check the project structure in
README.md
Common Issues
Port already in use
Port already in use
If port 8080 (Docker) or 3001 (local) is already in use, you can:
- Stop the conflicting service
- Change the port in
docker-compose.yml(Docker) or use a different port withphp -S localhost:PORT
Composer SSL certificate error (Windows)
Composer SSL certificate error (Windows)
See the Installation Guide for detailed troubleshooting steps.
Database connection failed
Database connection failed
Verify your
.env file settings match your environment:- For Docker: ensure containers are running with
docker-compose ps - For Local: ensure MySQL/MariaDB service is running