Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erykmika/fancy-blog
Blogging full-stack web application written using PHP and Codeigniter 4
https://github.com/erykmika/fancy-blog
codeigniter codeigniter4 full-stack-web-development fullstack mvc mysql php phpunit
Last synced: 23 days ago
JSON representation
Blogging full-stack web application written using PHP and Codeigniter 4
- Host: GitHub
- URL: https://github.com/erykmika/fancy-blog
- Owner: erykmika
- Created: 2023-10-03T16:12:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-05T22:20:04.000Z (8 months ago)
- Last Synced: 2024-10-01T07:42:53.830Z (about 1 month ago)
- Topics: codeigniter, codeigniter4, full-stack-web-development, fullstack, mvc, mysql, php, phpunit
- Language: PHP
- Homepage:
- Size: 218 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```sh
git clone https://github.com/erykmika/fancy-blog.git
cd ./fancy-blog/
```### Run 'composer' and install required packages
```sh
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:
```sh
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.
```sh
php spark migrate
```### (Optional) Run the database seeder
Seeding the database will insert sample data into the tables.
```sh
php spark db:seed
> DatabaseSeeder
```### Start a development server
```sh
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.