wdmg / butterfly.cms

Butterfly.CMS on Yii 2
MIT License
18 stars 6 forks source link

Butterfly.CMS

Innovative Content Management System based on Yii2 framework. And it's all.

P/s^ A little patience...šŸ˜‰

Yii2 Downloads Packagist Version Progress GitHub license

Requirements

* - actually in progress development

Installation

To install the app, run the following command`s in the console:

$ composer create-project --prefer-dist wdmg/butterfly.cms example.com
$ cd example.com
$ php init

...or use automatic mode:

$ php init --env=development --overwrite=y --dbhost=localhost --dbtype=mysql --dbcharset=utf8 --dbname=example --tbprefix=btf_ --dbuser=root --dbpassword=root --create_db=y --migrations=y

Migrations

After set of environment and configure db connection, run the following commands in the console for apply migrations:

$ php yii admin/init
$ php yii admin/options/init --choice=3
$ php yii admin/users/init --choice=3
$ php yii admin/rbac/init --choice=2

Demo

You can also initialize the test site with demo data using the command:

$ php yii hello/demo

After apply all migrations you may login to dashboard: http://example.com/admin/ with username admin and password admin.

Docker

Run the script docker/docker-init.sh or use manual instruction:

Build containers:

    $ docker-compose -f docker/docker-compose.yml -p example build

Run containers:

    $ docker-compose -f docker/docker-compose.yml -p example up -d www db phpmyadmin

Stop services:

    $ docker-compose -f docker/docker-compose.yml -p example stop

Discussion

For questions, complaints and suggestions follow to Butterfly.CMS community

Status and version [ready to use]