-
Clone the project
-
Composer install
-
Enter database configurations in config/db.php file
-
Commands:
- php yii migrate --migrationPath=@yii/rbac/migrations
- php yii migrate
-
5 users (with related roles) and admin, user, moderator roles will be generated when migrated: -username: admin; password: password -username: user; password: password -username: user_2; password: password -username: moderator; password: password -username: moderator_2; password: password
-
Links (x here variable). Postman collection will be shared in telegram:
- http://localhost:8080/auth/login
- http://localhost:8080/file/create
- http://localhost:8080/file
- http://localhost:8080/file/delete?id=x
- http://localhost:8080/file/view?id=x
- http://localhost:8080/file/download?id=x
- Bearer token is used instead of JWT