mirror of
https://github.com/pacnpal/thrillwiki_laravel.git
synced 2025-12-20 09:51:10 -05:00
97a7682eb72c1b76aceca3f7d5e187e12b63f363
- Implemented ParksLocationSearch component with loading state and refresh functionality. - Created ParksMapView component with similar structure and functionality. - Added RegionalParksListing component for displaying regional parks. - Developed RidesListingUniversal component for universal listing integration. - Established ManufacturersListing view with navigation and Livewire integration. - Added feature tests for various Livewire components including OperatorHierarchyView, OperatorParksListing, OperatorPortfolioCard, OperatorsListing, OperatorsRoleFilter, ParksListing, ParksLocationSearch, ParksMapView, and RegionalParksListing to ensure proper rendering and adherence to patterns.
ThrillWiki - Laravel/Livewire Implementation
This is the Laravel/Livewire implementation of ThrillWiki, maintaining feature parity with the original Django project.
Prerequisites
- PHP 8.1 or higher
- PostgreSQL
- Node.js and npm
- Composer
Setup Instructions
1. Environment Configuration
# Copy the example environment file
cp .env.example .env
# Generate application key
php artisan key:generate
Configure your .env file with the following essential settings:
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=thrillwiki
DB_USERNAME=your_username
DB_PASSWORD=your_password
2. Database Setup
- Create PostgreSQL database:
CREATE DATABASE thrillwiki;
- Run migrations and seed the database:
php artisan migrate:fresh --seed
3. Install Dependencies
# Install PHP dependencies
composer install
# Install Node.js dependencies
npm install
4. Start Development Servers
Run these commands in separate terminal windows:
# Start Laravel development server
php artisan serve
# Start Vite development server for asset compilation
npm run dev
For production:
npm run build
5. Clear Cache (If Needed)
php artisan cache:clear && php artisan config:clear && php artisan route:clear && php artisan view:clear
Troubleshooting
-
Assets Not Loading
- Ensure Vite is running (
npm run dev) - For production, make sure assets are built (
npm run build)
- Ensure Vite is running (
-
Database Connection Issues
- Verify PostgreSQL is running
- Check credentials in
.envfile - Ensure database exists and is accessible
-
Migration Errors
- Check migration order in
database/migrations - Ensure database is empty when running
migrate:fresh
- Check migration order in
Development Guidelines
This implementation maintains strict feature parity with the original Django project. Key requirements:
- Feature-to-Feature matching with Django implementation
- Identical API responses and data structures
- Consistent UI/UX with original
- Test coverage matching Django functionality
For detailed development guidelines, refer to the project documentation.
Description
Languages
PHP
52.9%
Blade
45.1%
JavaScript
1.2%
CSS
0.8%