Skip to content

Akshayaakannan/simple-blog-php

Repository files navigation

Simple Blog Platform

A PHP-based blogging application developed for the Senior Software Engineer Interview assessment. This application allows users to create, read, update, and delete (CRUD) posts, with added features for authentication, categorization, and search.

Features

  • CRUD Operations: Create, Read, Update, and Delete blog posts.
  • Authentication: Secure login and registration system.
  • Categorization: Organize posts by specific categories.
  • Search & Filter: Search posts by title/content and filter by category.
  • Security: SQL Injection prevention (PDO Prepared Statements) and XSS protection.

Prerequisites

  • XAMPP (or any Apache/MySQL stack)
  • PHP 7.4 or higher

Setup Instructions

  1. Database Setup:

    • Open phpMyAdmin (http://localhost/phpmyadmin).
    • Create a new database named simple_blog.
    • Import the database.sql file included in this project.
  2. Project Setup:

    • Copy the project folder to your web server's root directory (e.g., htdocs in XAMPP).
    • Ensure db.php has the correct database credentials (default is set to root with no password).
  3. Running the App:

    • Open your browser and navigate to http://localhost/simple_blog.

Login Credentials (for testing)

You can register a new user, or if you imported the dummy data:

  • Username: admin
  • Password: admin123

About

A clean PHP blogging platform with authentication and CRUD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published