FlyBlogs is a dynamic blogging platform built with Laravel. It enables users to create, manage, and share blog posts, with integrated Twitter support for instant or scheduled social sharing. Key features include blog scheduling, image uploads, post filtering by categories, a notification system, and interactive user engagement tools.
Features:
- Complete Blog post management system: Create, Read, Update, and Delete (CRUD) blog posts.
- Secure user authentication and profile customization.
- Integrated Twitter sharing, allowing both instant and scheduled posts directly to Twitter.
- Interactive commenting system and "like" feature for user engagement, with notifications sent to blog owners when a like or comment is created.
- Responsive design ensuring optimal display on both desktop and mobile devices.
- Filter and browse blogs by title, category, and description for enhanced searchability.
Technologies Used:
- PHP (8.x)
- Laravel (10.x)
- OAuth Twitter Integration
- MySQL database
- Tailwind CSS
To get the project up and running, follow these steps:
- Clone the repository:
- Install dependencies:
- Create a
.env
file: - Generate an application key:
- Run the database migrations:
- Name: David Johnson
- Email: davidjohnson@test
- Password: password
- Start the development server:
git clone https://github.com/younesghu/FlyBlogs.git
cd FlyBlogs
composer install
cp .env.example .env
Set up your environment variables in .env
(e.g., database credentials).
php artisan key:generate
php artisan migrate
or
php artisan migrate:fresh --seed
Optionally, you can use the migrate:fresh --seed
command to reset your database and seed it with sample data. This will include a user with the following details:
php artisan serve
To enable Twitter sharing for blog posts, follow these steps:
- Go to the Twitter Developer Portal and create a Twitter app.
- Get your API Key, API Secret Key, Access Token, and Access Token Secret.
- Add these credentials to your
.env
file: - Ensure the user has linked their Twitter account through OAuth to share posts directly on Twitter.
TWITTER_CLIENT_ID=your-twitter-api-key
TWITTER_CLIENT_SECRET=your-twitter-api-secret
TWITTER_ACCESS_TOKEN=your-twitter-access-token
TWITTER_ACCESS_SECRET=your-twitter-access-secret
The Laravel framework is open-sourced software licensed under the MIT license.