Go to file
Jon 9ab02dd3f1
Merge pull request #1 from Dobmod/master
Initial codebase
2024-10-29 00:48:58 +08:00
app inital codebase 2024-10-26 18:14:44 +08:00
bootstrap inital codebase 2024-10-26 18:14:44 +08:00
config inital codebase 2024-10-26 18:14:44 +08:00
database inital codebase 2024-10-26 18:14:44 +08:00
docs/images inital codebase 2024-10-26 18:14:44 +08:00
public inital codebase 2024-10-26 18:14:44 +08:00
resources inital codebase 2024-10-26 18:14:44 +08:00
routes inital codebase 2024-10-26 18:14:44 +08:00
storage inital codebase 2024-10-26 18:14:44 +08:00
tests inital codebase 2024-10-26 18:14:44 +08:00
.editorconfig inital codebase 2024-10-26 18:14:44 +08:00
.env.example inital codebase 2024-10-26 18:14:44 +08:00
.gitattributes inital codebase 2024-10-26 18:14:44 +08:00
.gitignore inital codebase 2024-10-26 18:14:44 +08:00
LICENSE Initial commit 2024-07-06 23:16:39 +08:00
README.md inital codebase 2024-10-26 18:14:44 +08:00
artisan inital codebase 2024-10-26 18:14:44 +08:00
composer.json inital codebase 2024-10-26 18:14:44 +08:00
composer.lock inital codebase 2024-10-26 18:14:44 +08:00
jsconfig.json inital codebase 2024-10-26 18:14:44 +08:00
package-lock.json inital codebase 2024-10-26 18:14:44 +08:00
package.json inital codebase 2024-10-26 18:14:44 +08:00
phpunit.xml inital codebase 2024-10-26 18:14:44 +08:00
postcss.config.js inital codebase 2024-10-26 18:14:44 +08:00
tailwind.config.js inital codebase 2024-10-26 18:14:44 +08:00
vite.config.js inital codebase 2024-10-26 18:14:44 +08:00

README.md

CasbinStarterKits

A starter kit for PHP-Casbin, built on Laravel-Authz with a Vue 3 and Tailwind CSS frontend.

Features

  • Role-Based Access Control (RBAC)
  • Admin Dashboard
  • Responsive Design
  • Authentication
  • User Management
  • Role Management
  • Organization Management
  • Menu Management
  • More Access Control Models
  • API Authorization
  • Audit Logs

Troubleshooting

screenshot_1.jpeg screenshot_2.jpeg

Installation

To set up and run CasbinStarterKits, follow these steps:

Prerequisites

  • PHP >= 8.0
  • Composer
  • Node.js and npm
  • MySQL, PostgreSQL, SQLite or compatible database

Steps

  1. Clone the Repository

    git clone https://github.com/php-casbin/casbin-starter-kits.git
    cd casbin-starter-kits
    
  2. Install Backend Dependencies

    composer install
    
  3. Set up Environment Configuration

    Copy the .env.example file and configure it as needed:

    cp .env.example .env
    php artisan key:generate
    
  4. Run Database Migrations

    php artisan migrate --seed
    
  5. Install Frontend Dependencies

    npm install
    
  6. Compile Assets

    npm run dev
    
  7. Start the Development Server

    php artisan serve
    
  8. Access the Application

    Open your browser and navigate to http://localhost:8000.

    Default Credentials
    username: admin@example.com password: admin
    username: user@example.com password: user

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any enhancements, fixes, or feedback.