rabint/advanced-app

rabint Yii 2 advanced Project starter app

v1.1 2022-07-28 09:36 UTC

This package is auto-updated.

Last update: 2024-03-30 00:19:44 UTC


README

Rabint Yii2 starter kit

پروژه کیت شروع به کار پروژه بر پایه فریمورک yii2 رابینت

how to install:

  1. download OR clone with git
https://github.com/rabint-lab/yii2-rabint-advanced-app.git

Or create with composer:

composer create-project rabint/advanced-app rabint-advanced-app
  1. composer install
php composer.phar install
  1. set your env : copy env.dist.php to env.php and edit this file if you need.

  2. set db config in _env/{your_env}.php

  3. go to app folder $ cd app

  4. apply migrations : $ php yii migrate

  5. apply migrations : $ php yii rbac-migrate

login to admin

  1. goto login page : maybe http://localhost/sample-app/login
  2. login data:
username password
webmaster secret_webmaster
manager secret_manager
user secret_user

env customize per app

you can copy _env folder to app_folder/_env

include hierarchy:

1- app_folder/_env/env_file

2- _env/env_file

3- app_folder/_env/base_env.php

4- _env/base_env.php

migration generate

$ php yii migrate-generate/create [table_name]

###For other usefull commands see: vendor/rabint/base/_doc/console_commands.md