A basic blogging platform where users can post, edit, and delete articles. Built using PHP, HTML, jQuery, AJAX, JSON, Bootstrap, CSS, and MySQL.
Topics: php
, mysql
, blog
, ajax
, bootstrap
, jquery
, css
-
Clone the Repository:
git clone https://github.com/yourusername/simple-blog-platform.git cd simple-blog-platform
-
Set Up the Database:
- Create a MySQL database named
blog_db
. Import the provided SQL file (db/database.sql
) to set up the necessary tables. - Import the provided SQL file to set up the necessary tables.
mysql -u yourusername -p blog_db < db/database.sql
- Create a MySQL database named
-
Configure Database Connection:
- Copy
config.sample.php
toconfig.php
:cp config.sample.php config.php
- Open
config.php
and update the database configuration details.
- Copy
-
Run the application:
- Serve the application using your local web server or PHP's built-in server:
php -S localhost:8000
- Serve the application using your local web server or PHP's built-in server:
-
Access the application:
- Open your browser and navigate to
http://localhost:8000
.
- Open your browser and navigate to
Here’s a basic file structure for your simple-blog-platform application:
simple-blog-platform/
│
├── config.sample.php
├── index.html
├── db/
│ └── database.sql
├── src/
│ ├── get-post.php
│ └── post-handler.php
├── include/
│ ├── config.sample.php
│ └── db.php
├── assets/
│ ├── css/
│ │ └── style.css
│ ├── js/
│ │ └── script.js
│ └── images/
├── README.md
└── .gitignore