This application powered on custom written framework. Application has MVC structure and made for learning purposes.
To start this app, perform the following steps:
- Install external libraries using composer and bower
composer install
bower install- Copy config file
cp etc/app-conf.php.sample etc/app-conf.php-
Change DB configuration in
etc/app-conf.php -
Migrate data to your database
php deploy/setup.php -fdAfter migration 3 test account will be available. Account with role user get see website content, admin also can delete items, and superadmin can also create and modify existing items. All test accounts has password as a password.
- Then start a server
php -S 0.0.0.0:8000 -t public/- Open 'http://localhost:8000' on your web browser
To check your app code to accordance to PSR standards, run the following script
php vendor/bin/phpcs --encoding=utf8To fix your code according to PSR standards, run the following script
php vendor/bin/phpcbfRun script
php bin/updateLangFiles.phpProvide translation for .po files located in /locales using poedit (just type poeditor in console to run it). poeditor will generate .mo files. After that, run script one more time to create .json files.
If you don't want to use poeditor, you can generate .mo files using the following script:
msgfmt messages.po -o messages.moFirst of all, you need to install the following packages:
sudo apt-get install libjson-perl liblocal-lib-perl liblocale-po-perlCheck which locales are supported on your machine:
locale -aAdd locales you need (for example ru_RU or ru_UA):
sudo locale-gen ru_RU
sudo locale-gen ru_RU.UTF-8
sudo locale-gen ru_UA.UTF-8Update system locales:
sudo update-locale
sudo dpkg-reconfigure localesInstall poedit on your machine:
sudo apt-get install poedit