Skip to content

romangrb/resource-registry

 
 

Repository files navigation

Resource-registry project

Resource-registry project is a web Yii 2 application for the decentralized property register of Natural Resources of Ukraine.

DIRECTORY STRUCTURE

  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

REQUIREMENTS

The minimum requirement by this project that your Web server supports PHP 5.4.0 and MySQL.

INSTALLATION

Install from an Archive File

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>

Install via Git

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 https://github.com/litvinchuck/resource-registry.git

Now you should be able to access the application through the following URL:

http://localhost/<subdirectory>

DATABASE SETUP

A resource_registry.sql file is included in the repository. It should be used to create the base structure of the database

Using PhpMyAdmin

If you do not have PhpMyAdmin, you can install it by following the instructions at wiki.phpmyadmin.net.

  • Step 1
    Login into PhpMyAdmin.
  • Step 2
    Select the database in the left menu that you will be working with or create a new one.
  • Step 3
    Click Import in the top menu.
  • Step 4
    Under File to Import, click Browse and select the resource_registry.sql file.
  • Step 5
    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.

CONFIGURATION

Database

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',
];

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.4%
  • PHP 24.3%
  • HTML 20.3%
  • ApacheConf 9.4%
  • CSS 4.4%
  • Batchfile 0.2%