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 |
PHP >= 8.1 is recommended. You must have an instance of the MySQL database and composer installed in order to set up required dependencies.
git clone https://github.com/erykmika/fancy-blog.git
cd ./fancy-blog/
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 .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 script. This will create a proper schema of the database.
php spark migrate
Seeding the database will insert sample data into the tables.
php spark db:seed
> DatabaseSeeder
php spark serve
Now that everything is set up, go to localhost:8080 in your web browser.
Go to localhost:8080/admin/login. Enter the password 123. After that you should be able to edit the articles.