A fantasy football management game built with Laravel and React.
This project uses Laravel Herd for local development. Herd provides a blazing fast, native Laravel and PHP development environment for macOS and Windows.
- macOS: macOS 12.0 or higher
- Windows: Windows 10 or higher
- Laravel Herd installed and running
- Composer (included with Herd)
- Node.js (included with Herd)
-
Clone the repository
git clone <repository-url> cd fantasy-manager
-
Install PHP dependencies
composer install
-
Install Node.js dependencies
pnpm install
-
Set up environment
cp .env.example .env php artisan key:generate
-
Configure database
The project supports multiple database options:
-
SQLite (recommended for development):
touch database/database.sqlite
Update
.env:DB_CONNECTION=sqlite -
MySQL/PostgreSQL (if using Herd Pro services): Update
.envwith your database credentials from Herd's service management.
-
-
Run migrations and seeders
php artisan migrate --seed
-
Build frontend assets
pnpm run dev
-
Start the development server
php artisan serve
Or use Herd's automatic site detection by placing your project in a directory that Herd monitors.
- Frontend development: Run
pnpm run devfor hot reloading - Backend development: Herd automatically handles PHP and Laravel
- Database: Use Herd's built-in database services or SQLite for development
- Testing: Run
php artisan testfor PHP tests,pnpm testfor frontend tests
# Laravel commands
php artisan serve # Start development server
php artisan migrate # Run migrations
php artisan migrate:fresh # Reset database and run migrations
php artisan db:seed # Run seeders
php artisan test # Run PHP tests
php artisan tinker # Laravel REPL
# Frontend commands
pnpm run dev # Start Vite dev server
pnpm run build # Build for production
pnpm run test # Run frontend tests
pnpm run lint # Lint codeapp/- Laravel application logicresources/js/- React components and pagesdatabase/- Migrations and seedersroutes/- Application routestests/- Test files
- Herd not detecting site: Ensure your project is in a directory that Herd monitors
- Database connection issues: Check your
.envconfiguration and ensure the database service is running - Asset compilation errors: Run
pnpm installand ensure Node.js version is compatible
If you're experiencing slow performance on Windows, Windows Defender might be scanning Herd folders. To improve performance:
- Open Windows Security
- Go to "Virus & threat protection" → "Manage settings"
- Scroll to "Exclusions" → "Add or remove exclusions"
- Add folder exclusion:
%USERPROFILE%\.config\herd
This typically resolves to C:\Users\YourUsername\.config\herd and will prevent Windows Defender from scanning Herd's configuration folder.
For production deployment, refer to Laravel's official deployment documentation and ensure all environment variables are properly configured.