Barta is a modern single-page application (SPA) built with Laravel and Livewire, offering real-time updates via WebSockets. It features an interactive, dynamic feed, instant notifications, and seamless user interactions with no page reloads, providing an optimized, smooth experience throughout.
- Dynamic Home Feed: Infinite scrolling, user filtering, and stats for likes and comments.
- Real-Time Notifications: Instant updates for likes and comments via WebSockets (Pusher & Laravel Echo).
- Live Search Bar: Quickly find users with instant search results.
- User-Friendly SPA: Built entirely with Livewire for smooth transitions and optimal performance.
Follow these instructions to set up the project.
-
Clone the repository:
git@github.com:Fabdoc27/Barta-SPA.git
-
Navigate to the project directory:
cd "Barta-SPA"
-
Install PHP dependencies:
composer install
-
Install Node.js dependencies:
npm install
-
Create the environment file:
cp .env.example .env
-
Set up your
.env
file:BROADCAST_DRIVER=pusher PUSHER_APP_ID=your-app-id PUSHER_APP_KEY=your-app-key PUSHER_APP_SECRET=your-app-secret PUSHER_APP_CLUSTER=your-app-cluster
-
Generate the application key:
php artisan key:generate
-
Run database migrations:
php artisan migrate
-
Seed the database (optional):
php artisan db:seed
-
Start the local development server:
php artisan serve
-
Compile front-end assets:
npm run dev
-
Start the queue worker:
php artisan queue:work
-
Clear livewire temporary files (additional):
php artisan clear-livewire-temp