https://github.com/kriptograf/yii2lms
Yii2 Learning Management System
https://github.com/kriptograf/yii2lms
Last synced: about 2 months ago
JSON representation
Yii2 Learning Management System
- Host: GitHub
- URL: https://github.com/kriptograf/yii2lms
- Owner: kriptograf
- License: bsd-3-clause
- Created: 2023-01-29T13:09:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T18:47:05.000Z (over 3 years ago)
- Last Synced: 2025-01-13T13:50:33.561Z (over 1 year ago)
- Language: PHP
- Size: 18.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Yii 2 LMS Project Template
Yii 2 LMS Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for
developing complex Web applications with multiple tiers.
The template includes three tiers: api, backend, client, and console, each of which
is a separate Yii application.
The template is designed to work in a team development environment. It supports
deploying the application in different environments.
Documentation is at [docs/guide/README.md](docs/guide/README.md).
[](https://packagist.org/packages/yiisoft/yii2-app-advanced)
[](https://packagist.org/packages/yiisoft/yii2-app-advanced)
[](https://github.com/yiisoft/yii2-app-advanced/actions?query=workflow%3Abuild)
DIRECTORY STRUCTURE
-------------------
```
client
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for frontend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
```
Docker application url
Access it in your browser by opening
```
frontend: http://127.0.0.1:20080
backend: http://127.0.0.1:21080
```
```shell
docker-compose run --rm backend yii migrate
```
```shell
docker-compose run --rm backend yii migrate/create
```
### Apply RBAC migrations
```shell
docker-compose run --rm backend yii migrate --migrationPath=@yii/rbac/migrations
```
### Seeding test data
```shell
docker-compose run --rm backend yii seed
```
@todo
- Допилить nuxt, что бы можно было использовать глобальные настройки из yii