This is a blog application built with Laravel 10, integrating powerful tools such as Filament, Livewire, and Jetstream. The project aims to provide a robust and scalable platform for creating and managing blog posts with a user-friendly interface and real-time features.
- User Authentication: Secure authentication powered by Jetstream.
- Admin Panel: Manage blog posts, categories, and users through an intuitive admin panel with Filament.
- Real-Time Updates: Dynamic and interactive components utilizing Livewire for a seamless user experience.
- Blog Management: Create, update, delete, and publish blog posts.
- Category Management: Organize blog posts into categories for easy navigation.
- User Roles and Permissions: Role-based access control for different user types (admin, editor, viewer).
- PHP 8.1 or higher
- Composer
- Node.js & npm
- MySQL or any other supported database
-
Clone the repository:
git clone https://github.com/yourusername/laravel-blog-using-jetstream.git cd laravel-blog-using-jetstream
-
Install dependencies:
composer install npm install
-
Set up environment variables:
- Copy
.env.example
to.env
:cp .env.example .env
- Update the
.env
file with your database credentials and other environment settings.
- Copy
-
Generate application key:
php artisan key:generate
-
Run migrations:
php artisan migrate
-
Install and configure Jetstream:
php artisan jetstream:install livewire
-
Build assets:
npm run build
-
Seed the database (optional):
php artisan db:seed
-
Serve the application:
php artisan serve
- Admin Panel: Accessible at
/admin
, where you can manage posts, categories, and users. - Blog Frontend: The blog can be viewed at the root URL. Visitors can browse posts by category and search for content.
- User Authentication: Users can register, log in, and manage their profiles using Jetstream's authentication features.
Run the automated tests to ensure that everything is working as expected:
php artisan test
For continuous integration, the build status and coverage are tracked using GitHub Actions and Coveralls.
For deploying this application to a production server, ensure you have properly set up your environment variables, configured your web server, and optimized your application:
php artisan optimize
Consider using services like Laravel Forge for easy server management and deployment.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
Please ensure your code follows the PSR-12 coding standard and includes relevant tests.
This project is open-sourced software licensed under the MIT license.