Setup a site with the basic template with composer
<code>
composer global require fxp/composer-asset-plugin:^1.2.0
composer create-project --prefer-dist yiisoft/yii2-app-basic name-of-project
</code>

You can setup a ''.htaccess'' file to jump automatically to the web folder using the instructions found [[htaccess_file_for_mint_virtual_host|here]]

Edit the ''config/db.php'' to point to your database file.

Create a migration file to create a table in the database. See [[a_simple_migration_example|here]].

Now you have a example database to work on.

Go to the [[step_2_-_create_crud_for_the_database|next step]]

Back to [[yii|Yii Main Index]]