2017 © Pedro Peláez
 

project yii2-skeleton

Yii 2 Skeleton Project Template

image

powerkernel/yii2-skeleton

Yii 2 Skeleton Project Template

  • Wednesday, July 4, 2018
  • by powerkernel
  • Repository
  • 1 Watchers
  • 5 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

Yii 2 Skeleton

Yii 2 Skeleton is a skeleton (based on Yii 2 App Advanced) application best for developing complex Web applications with multiple tiers., (*1)

The template includes 4 tiers: front end, back end, api and console, each of which is a separate Yii application., (*2)

The template is designed to work in a team development environment. It supports deploying the application in different environments., (*3)

Note: Yii 2 Skeleton only supports MongoDB, (*4)

INSTALLATION

  1. Unzip repository, edit composer.json to suit your needs, then run composer update or composer update --prefer-source
  2. Run init, update your database information, baseUrl in common/config/mail-local.php
  3. Run php yii mongodb-migrate --migrationPath=@console/migrations
  4. Run php yii setup
  5. Go to frontend and sign up for new account, admin role will be auto assigned
  6. Go to backend and update all settings (reCaptcha, API, SMTP...)
  7. Generate icons from http://realfavicongenerator.net/, upload favicon.ico to the root of your web site (frontend and backend)
  8. (optional) update gitHubPage in common/config/params-local.php if you want to use github to host favicon and images.

Web server config

frontend/web => domain.com backend/web => backend.domain.com api/web => api.domain.com, (*5)

Google Login Authorized redirect URIs

https://domain.com/account/auth?authclient=google https://backend.domain.com/account/login/google, (*6)

The Versions