anmaslov/start-page

Simple start page

1.2.0 2017-04-19 07:49 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:28:33 UTC


README

REQUIREMENTS

Minimum requirements - support the server version of PHP 5.4.0.

INSTALL

Install via Composer

If you do not have Composer - you may install it by following the instructions at getcomposer.org.

You can then install this start-page using the following command

composer create-project --stability=dev anmaslov/start-page

Install gulp

Then need install all packages

npm install

After package install you need make css files:

gulp css

Now you should be able to access the application through the following URL, assuming basic is the directory directly under the Web root.

http://localhost/start-page/web/

CONFIGURATION

Database

Edit the file config/db.php with real data, for example:

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2basic',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];

NOTE: Yii won't create the database for you, this has to be done manually before you can access it.

Also check and edit the other files in the config/ directory to customize your application.

Migration

Apply migration

.\yii migrate

Npm and Gulp

gulp css

Second mode

git clone https://github.com/anmaslov/start-page.git

go to project folder

cd start-page

then run

composer install
yii init

Then configure database connection config/db.php and apply all migration .\yii migrate