An open API service indexing awesome lists of open source software.

https://github.com/krisnaajiep/php-personal-blog

A simple personal blog web app built with HTML, CSS, and PHP that used to write and publish articles.
https://github.com/krisnaajiep/php-personal-blog

basic-a blog blog-article blog-platform blog-web-app blog-webapplication blog-website css filesystem html html-css-php http-bas json-files personal-blog php web web-app web-application

Last synced: 22 days ago
JSON representation

A simple personal blog web app built with HTML, CSS, and PHP that used to write and publish articles.

Awesome Lists containing this project

README

        

# PHP Personal Blog

> Simple personal blog web application built with HTML, CSS, and PHP.

## Table of Contents

- [General Info](#general-information)
- [Technologies Used](#technologies-used)
- [Features](#features)
- [Setup](#setup)
- [Usage](#usage)
- [Project Status](#project-status)
- [Acknowledgements](#acknowledgements)

## General Information

PHP Personal Blog is a simple web application that used to write and publish articles. This project is designed to explore and practice basic authentication, working with filesystem, HTML, CSS and server in PHP.

## Technologies Used

- HTML
- CSS
- PHP - version 8.3.6

## Features

- **View all articles**: Display a list of all existing articles with their title and publishing date.
- **Admin login**: A basic authentication for the admin section to be able to manage articles.
- **Add new article**: Create a new article with a title, publishing date, and content.
- **View an article**: Display an article with theri title, publishing date, and content.
- **Update an article**: Modify an existing article.
- **Delete an aarticle**: Remove an existing article.

## Setup

To run this CLI tool, you’ll need:

- **PHP**: Version 8.3 or newer

How to install:

1. Clone the repository

```bash
git clone https://github.com/krisnaajiep/php-personal-blog.git
```

2. Change the current working directory

```bash
cd path/php-personal-blog
```

3. Run the PHP Bult-in server

```bash
php -S localhost:8000
```

4. Access the URL

```bash
http://localhost:8000
```

## Usage

1. Select `Admin` to enter dashboard.

![enter-dashboard](images/image1.png)

2. Use the following credentials for authentication.

```text
Username: admin
Password: password
```

3. Select `+Add` to add new article.

![select-add](images/image2.png)

4. Fill all input in the add article form and select `Publish` button.

![add-new-article](images/image3.png)

5. Select an article title in dashboard to view the content.

![view-article](images/image4.png)

6. Select `Go back` for return to the previous page.

![go-back-in-article-page](images/image5.png)

7. Select `Edit` to update an article.

![select-edit](images/image6.png)

8. Fill all input in the edit article form and select `Update` button.

![edit-an-article](images/image7.png)

9. Select `Delete` to delete an article.

![delete-article](images/image8.png)

## Project Status

Project is: _complete_.

## Acknowledgements

This project was inspired by [roadmap.sh](https://roadmap.sh/projects/personal-blog).