If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
git clone https://github.com/andku83/contacts.git
cd contacts
composer install
yii migrate
yii serve
Now you should be able to access the application through the following URL, assuming contacts
is the directory
directly under the Web root.
http://localhost:8080/
Edit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2_contacts',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
];
NOTES:
- Yii won't create the database for you, this has to be done manually before you can access it.
- Check and edit the other files in the
config/
directory to customize your application as required.