Skip to content
zachealy1Public

About

This is a Laravel-based blog application that allows users to register, log in, create posts, comment on posts, like posts, and receive notifications for interactions on their content.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About the Project

This is a Laravel-based blog application that allows users to register, log in, create posts, comment on posts, like posts, and receive notifications for interactions on their content. Admin users can manage all users, posts, and comments, while regular users can manage their own posts and comments.

This project leverages Laravel’s powerful features including:

  • Authentication and Authorization: Supports user roles (admin and regular users).
  • Posts: Users can create, edit, and delete posts.
  • Comments: Users can add comments to posts.
  • Likes: Users can like and unlike posts.
  • Notifications: Users receive notifications when their posts are liked or commented on.
  • Admin Panel: Admin users can manage users, posts, and comments.

Table of Contents

Features

  • User registration, login, and authentication.
  • Post creation, editing, and deletion.
  • Comments on posts.
  • Like/unlike functionality for posts.
  • Notifications for post likes and comments.
  • Admin dashboard for managing users, posts, and comments.

Installation

Step 1: Clone the Project

Download the project ZIP file from the provided source. Unzip the file into your desired directory.

git clone git@github.com:zachealy1/blog-app.git ~/development/repositories/blog-app

Navigate to the project directory in your terminal:

cd ~/development/blog-app

Step 2: Install Dependencies

Install all PHP dependencies required by the Laravel project.

composer install

Install all JavaScript dependencies needed for asset management and frontend tooling.

npm install

Compile and bundle project assets like CSS and JavaScript for development use.

npm run dev

Step 3: Migrate and Seed the Database

Migrate the database

php artisan migrate

Seed the database

php artisan db:seed

Requirements

  • PHP 8.1 or later
  • Composer
  • Node.js & NPM
  • MySQL or another supported database

Usage

Users can create, edit, and delete posts. Users can add comments to posts. Admins have access to an admin functions where they can manage posts and users. Users receive notifications when their posts are liked or commented on.

Admin Access

By default, an admin user is created during database seeding. You can log in using:

Seeding

To generate fake data (users, posts, comments), run the following command:

php artisan db:seed

This will generate test users, posts, and comments. An admin user will also be created.

About

This is a Laravel-based blog application that allows users to register, log in, create posts, comment on posts, like posts, and receive notifications for interactions on their content.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages