Native PHP Blog is a simple blog application built using PHP without any framework. This application utilizes a SQL database to store and manage blog content.
- User registration and login.
- Displaying a list of blog posts.
- Individual blog post pages.
- Adding new posts.
- Editing and deleting posts.
- User and post administration.
- Clone this repository:
https://github.com/Fujitime/php-blog.git
. - Navigate to the project directory:
php-blog
. - Import the SQL file into your database. The SQL file can be found at
blog.sql
. - Configure the database connection in the
koneksi.php
file. - Open the application in your browser.
- PHP 7.0 or newer.
- MySQL or any other SQL database.
This project utilizes Tailwind CSS for styling. To get started with Tailwind CSS, follow these steps:
- Install Tailwind CSS using Yarn:
yarn add tailwindcss
or using npm:npm install tailwindcss
. - Build the CSS file by running the following script:
yarn tail
ornpm run tail
. This command will compile theinput.css
file intostyle.css
using Tailwind CSS. - Make sure to link the compiled
style.css
file in your HTML templates.
- Create a MySQL database and import the SQL file
blog.sql
to set up the required tables. - Configure the database connection in the
koneksi.php
file by providing the appropriate credentials. - Start your local development server or use a web server software to run the application.
- Open the application in your web browser.
The default admin account credentials are as follows:
- Username: admin
- Password: 12345
Please make sure to change the default username and password after installation for security purposes.
We welcome contributions to this project! If you would like to contribute, please follow these steps:
- Fork this repository.
- Create a new branch for your feature or fix:
git checkout -b new-feature
. - Make necessary changes.
- Commit your changes:
git commit -m "Add new feature"
. - Push to your feature branch:
git push origin new-feature
. - Submit a pull request to this repository.
This project is licensed under the MIT License. See the LICENSE file for more information.