Initial codebase |
||
---|---|---|
app | ||
bootstrap | ||
config | ||
database | ||
docs/images | ||
public | ||
resources | ||
routes | ||
storage | ||
tests | ||
.editorconfig | ||
.env.example | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.md | ||
artisan | ||
composer.json | ||
composer.lock | ||
jsconfig.json | ||
package-lock.json | ||
package.json | ||
phpunit.xml | ||
postcss.config.js | ||
tailwind.config.js | ||
vite.config.js |
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
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
-
Clone the Repository
git clone https://github.com/php-casbin/casbin-starter-kits.git cd casbin-starter-kits
-
Install Backend Dependencies
composer install
-
Set up Environment Configuration
Copy the
.env.example
file and configure it as needed:cp .env.example .env php artisan key:generate
-
Run Database Migrations
php artisan migrate --seed
-
Install Frontend Dependencies
npm install
-
Compile Assets
npm run dev
-
Start the Development Server
php artisan serve
-
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.