Skip to content

Blogging full-stack web application written using PHP and Codeigniter 4

Notifications You must be signed in to change notification settings

erykmika/fancy-blog

Repository files navigation

fancy-blog

Tech stack used

Type Technology used
Core scripting language PHP
MVC framework Codeigniter 4
Database MySQL
Testing database SQLite
Unit testing PHPUnit/Codeigniter testing framework
View HTML/CSS/Bootstrap 5 CSS library

Setup

PHP >= 8.1 is recommended. You must have an instance of the MySQL database and composer installed in order to set up required dependencies.

Clone the repository and navigate into it

git clone https://github.com/erykmika/fancy-blog.git
cd ./fancy-blog/

Run 'composer' and install required packages

composer install

This assumes composer is installed globally on your machine. If not, refer to this manual https://getcomposer.org/doc/00-intro.md.

Prepare the database configuration

Prepare the .env file. You can create your own one by using the env template:

cp ./env ./.env

At least, modify the development database rows according to your MySQL instance setup.

Run the database migration

Run the database migration script. This will create a proper schema of the database.

php spark migrate

(Optional) Run the database seeder

Seeding the database will insert sample data into the tables.

php spark db:seed
> DatabaseSeeder

Start a development server

php spark serve

Now that everything is set up, go to localhost:8080 in your web browser.

Accessing the admin dashboard

Go to localhost:8080/admin/login. Enter the password 123. After that you should be able to edit the articles.

Releases

No releases published

Packages

No packages published

Languages