yii2-angular-boilerplate
Yii2 REST API + Angular 12 Boilerplate (Frontend/Backend)
File Explorer
Download Latest Version (.zip)- main.yml
- extensions.json
- settings.json
- AppAsset.php
- RbacController.php
- console.php
- db.php
- params.php
- test.php
- test_db.php
- web.php
- SiteController.php
- HttpBearerAuth.php
- 000-default.conf
- apache2.conf
- .bashrc
- composer
- docker-entrypoint.sh
- base.ini
- xdebug.ini
- html.php
- email-confirmation-html.php
- password-reset-token-html.php
- signup-confirmation-html.php
- signup-success-html.php
- m170125_081951_create_setting_table.php
- m170125_082006_create_user_table.php
- m170506_004517_init_rbac.php
- LoginForm.php
- PasswordResetForm.php
- PasswordResetRequestForm.php
- PasswordResetTokenVerificationForm.php
- Setting.php
- SignupConfirmForm.php
- SignupForm.php
- User.php
- UserEditForm.php
- UserSearch.php
- SettingController.php
- StaffController.php
- UserController.php
- Module.php
- .gitignore
- .gitignore
- .gitignore
- AcceptanceTester.php
- FunctionalTester.php
- UnitTester.php
- _bootstrap.php
- yii
- yii.bat
- _bootstrap.php
- PingCest.php
- SettingCest.php
- UserCest.php
- UserTest.php
- _bootstrap.php
- _bootstrap.php
- acceptance.suite.yml.example
- functional.suite.yml
- unit.suite.yml
- main.php
- about.php
- contact.php
- error.php
- index.php
- login.php
- .gitignore
- site.css
- .htaccess
- favicon.ico
- index-test.php
- index.php
- robots.txt
- .bowerrc
- .dockerignore
- .editorconfig
- .gitignore
- codeception.yml
- composer.json
- composer.lock
- Dockerfile
- LICENSE.md
- phpcs.xml.dist
- requirements.php
- yii
- yii.bat
- settings.json
- tsconfig.e2e.json
- nginx.conf
- docker-entrypoint-dev.sh
- docker-entrypoint.sh
- dashboard-routing.module.ts
- dashboard.component.html
- dashboard.component.ts
- dashboard.module.ts
- backend-layout.component.html
- backend-layout.component.ts
- simple-layout.component.html
- simple-layout.component.ts
- login-routing.module.ts
- login.component.html
- login.component.ts
- login.module.ts
- logout-routing.module.ts
- logout.component.ts
- logout.module.ts
- auth.guard.ts
- global.service.spec.ts
- global.service.ts
- pagination.ts
- response-body.ts
- setting-data.service.ts
- setting.ts
- staff-data.service.ts
- staff-list.ts
- staff.service.ts
- staff.ts
- user-data.service.ts
- user-list.ts
- user.ts
- 404.component.html
- 404.component.ts
- setting-global-form.component.html
- setting-global-form.component.ts
- setting-global-list.component.html
- setting-global-list.component.ts
- setting-global-routing.module.ts
- setting-global.module.ts
- setting-routing.module.ts
- setting.module.ts
- spinner.component.scss
- spinner.component.ts
- spinner.scss
- shared.module.ts
- shared.service.ts
- staff-form.component.html
- staff-form.component.ts
- staff-list.component.html
- staff-list.component.ts
- staff-routing.module.ts
- staff.module.ts
- user-form.component.html
- user-form.component.ts
- user-list.component.html
- user-list.component.ts
- user-routing.module.ts
- user.module.ts
- app.component.html
- app.component.scss
- app.component.spec.ts
- app.component.ts
- app.module.ts
- app.routing.ts
- ngx-bootstrap-logo.svg
- .gitkeep
- environment.prod.ts
- environment.ts
- _custom.scss
- _variables.scss
- styles.scss
- favicon.ico
- index.html
- main.ts
- polyfills.ts
- test.ts
- tsconfig.app.json
- tsconfig.spec.json
- typings.d.ts
- .browserslistrc
- .dockerignore
- .editorconfig
- .eslintrc.json
- .gitignore
- .prettierignore
- .prettierrc.js
- angular.json
- Dockerfile
- karma.conf.js
- package-lock.json
- package.json
- README.md
- tsconfig.json
- tslint.json
- settings.json
- index.e2e-spec.ts
- login.e2e-spec.ts
- global.po.ts
- header.po.ts
- index.po.ts
- login.po.ts
- tsconfig.e2e.json
- nginx.conf
- docker-entrypoint-dev.sh
- docker-entrypoint.sh
- account-edit.component.html
- account-edit.component.ts
- account-routing.module.ts
- account.component.html
- account.component.ts
- account.module.ts
- confirm-routing.module.ts
- confirm.component.html
- confirm.component.ts
- confirm.module.ts
- index-routing.module.ts
- index.component.html
- index.component.ts
- index.module.ts
- frontend-layout.component.html
- frontend-layout.component.ts
- login-routing.module.ts
- login.component.html
- login.component.ts
- login.module.ts
- logout-routing.module.ts
- logout.component.ts
- logout.module.ts
- auth.guard.ts
- global.service.spec.ts
- global.service.ts
- response-body.ts
- user-data.service.ts
- user.service.ts
- user.ts
- 404.component.html
- 404.component.ts
- password-reset-routing.module.ts
- password-reset.component.html
- password-reset.component.ts
- password-reset.module.ts
- password-reset-request-routing.module.ts
- password-reset-request.component.html
- password-reset-request.component.ts
- password-reset-request.module.ts
- sample-page-routing.module.ts
- sample-page.component.html
- sample-page.component.ts
- sample-page.module.ts
- spinner.component.scss
- spinner.component.ts
- spinner.scss
- shared.module.ts
- signup-routing.module.ts
- signup.component.html
- signup.component.ts
- signup.module.ts
- app-routing.module.ts
- app.component.html
- app.component.scss
- app.component.spec.ts
- app.component.ts
- app.module.ts
- ngx-bootstrap-logo.svg
- .gitkeep
- environment.prod.ts
- environment.ts
- _custom.scss
- _variables.scss
- styles.scss
- favicon.ico
- index.html
- main.ts
- polyfills.ts
- test.ts
- tsconfig.app.json
- tsconfig.spec.json
- typings.d.ts
- .browserslistsrc
- .dockerignore
- .editorconfig
- .eslintrc.json
- .gitignore
- .prettierignore
- .prettierrc.js
- angular.json
- Dockerfile
- karma.conf.js
- package-lock.json
- package.json
- README.md
- tsconfig.json
- tslint.json
- my.cnf
- nginx.conf
- robots.txt
- .gitignore
- .gitlab-ci.yml
- docker-compose.actions.yml
- docker-compose.yml
- LICENSE
- README.md
# Installation Guide
git clone https://github.com/chrisleekr/yii2-angular-boilerplate
Downloads the entire project code from GitHub to your computer.
cd yii2-angular-boilerplate
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
$ docker-compose up -d
Runs the command against the services defined in the compose file.
docker exec -it api /bin/sh
Type this command into your terminal and run it.
docker exec api composer run sniff
Type this command into your terminal and run it.
docker exec api composer run test:unit
Type this command into your terminal and run it.
docker logs backend --follow
Type this command into your terminal and run it.
Pulled directly from this repo's README.
3. Node.js
Easy$ npm run test
Type this command into your terminal and run it.
$ npm run e2e
Type this command into your terminal and run it.
Pulled directly from this repo's README.
4. PHP (Composer)
Easydocker exec api composer run sniff
Type this command into your terminal and run it.
docker exec api composer run test:unit
Type this command into your terminal and run it.
Pulled directly from this repo's README.
