2017 © Pedro Peláez
 

project start-page

Simple start page

image

anmaslov/start-page

Simple start page

  • Thursday, April 20, 2017
  • by anmaslov
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Simple start page based on Yii 2 Yii2

REQUIREMENTS

Minimum requirements - support the server version of PHP 5.4.0., (*1)

INSTALL

Install via Composer

If you do not have Composer - you may install it by following the instructions at getcomposer.org., (*2)

You can then install this start-page using the following command, (*3)

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

Install gulp, (*4)

Then need install all packages, (*5)

npm install

After package install you need make css files:, (*6)

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., (*7)

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

CONFIGURATION

Database

Edit the file config/db.php with real data, for example:, (*8)

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., (*9)

Also check and edit the other files in the config/ directory to customize your application., (*10)

Migration

Apply migration, (*11)

.\yii migrate

Npm and Gulp

gulp css

Second mode

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

go to project folder, (*12)

cd start-page

then run, (*13)

composer install
yii init

Then configure database connection config/db.php and apply all migration .\yii migrate, (*14)

The Versions

27/05 2015