https://github.com/zviryatko/blog-example
ZF2+Doctrine2 CRM example.
https://github.com/zviryatko/blog-example
Last synced: 12 months ago
JSON representation
ZF2+Doctrine2 CRM example.
- Host: GitHub
- URL: https://github.com/zviryatko/blog-example
- Owner: zviryatko
- License: bsd-3-clause
- Created: 2015-09-22T11:09:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-26T08:25:14.000Z (almost 10 years ago)
- Last Synced: 2025-04-15T09:54:49.637Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://zf2-demo.makeyoulivebetter.org.ua/
- Size: 3.18 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
ZF2+Doctrine example Application
================================
Example of ZF2 + Doctrine application.
[Demo](http://zf2-demo.makeyoulivebetter.org.ua/admin/login)
Admin: `admin@makeyoulivebetter.org.ua`
User: `jane.doe@makeyoulivebetter.org.ua`
Pass: `demo`
**Note:** Application active development.
Features
--------
[Bootstrap 3](https://getbootstrap.com/)
[AdminLTE theme](https://almsaeedstudio.com/) for admin pages
ToDo
----
- [x] Articles admin pages (list, add, edit)
- [ ] User admin pages (list, add, edit, view)
- [x] ACL, user roles and pemissions
- [x] Fix password hash generating
- [ ] Move file save path to config per entity
- [ ] Drag-n-drop upload, multi-upload
Installation
------------
git clone git@github.com:zviryatko/blog-example.git blog-example
cd blog-example
#### Phing
Install phing with git support:
composer global require phing/phing
And install via:
phing install
#### By-Hand
composer update
mysql -u root -p -e "CREATE DATABASE zf2_blog CHARACTER SET utf8 COLLATE utf8_general_ci;"
cp config/autoload/doctrine.orm.local.php.dist config/autoload/doctrine.orm.local.php
vim config/autoload/doctrine.orm.local.php
./vendor/bin/doctrine-module orm:schema-tool:create
Web server setup
----------------
### PHP CLI server
#### PhpStorm
Go to `Run > Edit Configurations`, click on green sign and fill like in screenshot:

After saving start web server `Run > Run 'Local w/Xdebug'`.
#### Command-line
The simplest way to get started if you are using PHP 5.4 or above is to start the internal PHP cli-server in the root
directory:
php -S 0.0.0.0:8080 -t public/ public/index.php
This will start the cli-server on port 8080, and bind it to all network
interfaces.
**Note:** The built-in CLI server is *for development only*.