Welcome to the Blog System! This web application, built with the Laravel framework, is designed to provide an intuitive and robust platform for managing and publishing blog posts. Whether you’re a seasoned blogger or just starting out, this system offers a seamless experience with its user-friendly interface and powerful features.
- CRUD Operations: Create, read, update, and delete blog posts.
- User Authentication: Sign up and log in to manage posts.
- Tailwind CSS Styling: Modern and responsive design.
- PHP 8.0 or higher
- Composer
- Laravel Installer
- MySQL or another compatible database
- Node.js and npm
-
Clone the Repository
git clone https://github.com/MuhammadZulhusni/Blog-System.git cd Blog-System
-
Install PHP Dependencies
composer install
-
Set Up Environment File
Copy the example environment file and adjust your settings.
cp .env.example .env
-
Generate Application Key
php artisan key:generate
-
Configure Your Database
Open the
.env
file and set the details as per your convenience. Below is my database connection:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=8889 DB_DATABASE=Blog-System DB_USERNAME=root DB_PASSWORD=
-
Run Migrations and Seed Data
Run the following command to migrate the database and seed it with initial data:
php artisan migrate:fresh --seed
This command will:
- Drop all existing tables.
- Recreate the tables as per the migration files.
- Seed the database with initial data specified in the seeders.
-
Install Node.js Dependencies
npm install
-
Compile Assets
Compile your CSS and JavaScript assets:
npm run dev
-
Start the Development Server
php artisan serve
Your application will be accessible at
http://127.0.0.1:8000
.
- Register: Sign up to create an account.
- Login: Access the dashboard to manage blog posts.
- Manage Posts: Use the interface to create, view, update, and delete blog posts.
If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.