A basic base app for the Yii Framework.
- Set up Git by following the instructions here.
- Update the configurations in
app/config/to suit your needs. Theapp/config/main.phpisn't configured to use a database by default. Edit yourcommon/config/environments/dev.phpandprod.phpto suit your database requirements. (Unless you are running the app in dev modeyiic env dev, it'll useprod.php.) - Composer is required. The package includes already a
composer.pharfile. - Browse through the
composer.jsonand remove the dependencies you don't need also update the required versions of the extensions. - If you have
composerinstalled globally:- Run
composer self-updateto make sure you have the latest version of composer. - Run
composer installto download all the dependencies.
- Run
- If you work the
composer.pharlibrary within the project.- Run
php composer.phar self-updateto make sure you have the latest version of composer. - Run
php composer.phar installto download all the dependencies.
- Run
- Download and install Node.js by following the instructions here here.
- Run
npm installto download Node.js dependencies. - Update the configurations in
app/configto suit your needs. - Start Grunt by running
gruntand it will compile your LESS and deploy your JavaScript files. - Run
yiic env devto activate the development environment. - Run
yiic debug onto enable the debugging mode. - You're done! Navigate to
web/index.phpto see your application.
For more information on Composer and Grunt:
The following extensions are part of yii-apollo-basic:
- Config builder https://github.com/Crisu83/yii-configbuilder
- Debug https://github.com/Crisu83/yii-debug
- Debug toolbar https://github.com/malyshev/yii-debug-toolbar
- Yiistrap https://github.com/Crisu83/yiistrap
Please consult the extension documentation for further information.
A sincere thanks to Crisu83 for making his fine work available.