This is a simple PHP-based personal blog project. It allows you to manage articles, including creating, editing, and deleting posts via an admin interface.
-
Requirements:
- PHP 7.4 or higher
- A web server (e.g., Apache, Nginx) or PHP's built-in server
-
Setup:
- Clone or download this repository to your local machine.
- Place the project folder in your web server's root directory (e.g.,
/var/www/html). - Make sure the
data/articles.jsonfile is writable by the web server (for article management).
-
Run Locally (using PHP built-in server):
- Open a terminal in the project directory.
- Run:
php -S localhost:8000
- Visit http://localhost:8000 in your browser.
-
Admin Panel:
- Access the admin panel at
/admin(e.g., http://localhost:8000/admin). - Default login credentials are set in
admin/auth.php(change them for security).
- Access the admin panel at
This project follows the roadmap from roadmap.sh: Personal Blog.
See the full roadmap and suggested features at: https://roadmap.sh/projects/personal-blog
index.php— Main blog pageadmin/— Admin panel for managing articlesdata/— Stores articles in JSON formatincludes/— Shared PHP includes (header, footer, functions)script.js— Frontend JavaScriptstyle.css— Stylesheet
This project is open source. See LICENSE for details.