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.
- 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.
- XAMPP (or any Apache/MySQL stack)
- PHP 7.4 or higher
-
Database Setup:
- Open phpMyAdmin (
http://localhost/phpmyadmin). - Create a new database named
simple_blog. - Import the
database.sqlfile included in this project.
- Open phpMyAdmin (
-
Project Setup:
- Copy the project folder to your web server's root directory (e.g.,
htdocsin XAMPP). - Ensure
db.phphas the correct database credentials (default is set torootwith no password).
- Copy the project folder to your web server's root directory (e.g.,
-
Running the App:
- Open your browser and navigate to
http://localhost/simple_blog.
- Open your browser and navigate to
You can register a new user, or if you imported the dummy data:
- Username: admin
- Password: admin123