Resource-registry project is a web Yii 2 application for the decentralized property register of Natural Resources of Ukraine.
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
The minimum requirement by this project template that your Web server supports PHP 5.4.0.
Extract the archive file downloaded from github.com to a root directory or any subdirectory located directly under the Web root.
Set cookie validation key in config/web.php
file to some random secret string:
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '<secret random string goes here>',
],
You can then access the application through the following URL:
http://localhost/<subdirectory>
If you do not have git installed on your computer, you may install it by following the instructions at git-scm.com.
Navigate to a root directory or any subdirectory located directly under the Web root.
You can then install this project using the following command:
git clone <repository url>
Now you should be able to access the application through the following URL:
http://localhost/<subdirectory>
A resource_registry.sql
file is included in the repository. It should be used to create the base structure
of the database
If you do not have PhpMyAdmin, you can install it by following the instructions at wiki.phpmyadmin.net.
- Login into PhpMyAdmin.
- Select the database in the left menu that you will be working with or create a new one.
- Click Import in the top menu.
-
Under File to Import, click Browse and select the
resource_registry.sql
file. - Click OK at the bottom left
When the database has been imported successfully, you should see a message at the top of the page similar to:
Import has been successfully finished, xx queries executed.
Edit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=resource-registry',
'username' => 'root',
'password' => '1234',
'charset' => 'utf8',
];