A blog application built with Zend Framework 3
Both MySQL and Apache server could be used if XAMPP is downloaded and installed.
You could also use PHP web server for testing instead of Apache.
In the project directory, install all dependencies with:
$ cd path/to/install
$ composer install
Run bloggie_zend.sql
, which is located in data
directory.
If you are using XAMPP, open phpMyAdmin, import the sql file and start MySQL module in XAMPP Control Panel.
If, for some reason, you use a MySQL database with different port or database name, please change them accordingly in config\autoload\local.php
.
- Option 1: PHP web server
$ php -S 0.0.0.0:8080 -t public
# OR use the composer alias:
$ composer run --timeout 0 serve
The application could be opened on port 8080 (http://localhost:8080).
- Option 2: Apache web server (XAMPP)
Open XAMPP Control Panel.
In Apache module, choose Config option to open httpd.conf
.
Change the DocumentRoot and Directory to the location of your project.
After saving the change, start Apache module in XAMPP Control Panel.
The application could be opened on localhost (http://localhost/).
Currently, there are 2 admin accounts which could be used for testing purpose.
Both accounts had the same password: testing.
- PHP 7
- Zend Framework 3
- Doctrine 2
-
User: read blog posts and leave comments
-
Admin:
Authentication
Change admin account data
CRUD function for post. Post could be published or saved as draft (which normal user won't be able to read).
Working in development
This project is licensed under the MIT License.