Skip to content

AlienGen/laravel-vuejs-adminlte

 
 

Repository files navigation

Laravel, Vuejs & AdminLTE

Boilerplate for Laravel, Vuejs & AdminLTE project.

The main goal for this project was to create a single page application (SPA) for the administration area with Vuejs and AdminLTE.

If you have a better idea for the setup please let me know :)

Features

  • Implemented OAuth2 with token refresh
  • Simple project structure divided for admin and front
  • AdminLTE split to partials and converted to Vuejs components
  • Simple edit profile page with profile picture upload

Setup

  • Clone or download this repository git clone https://github.com/vstruhar/laravel-vuejs-adminlte.git
  • cd into the project folder and run composer install
  • Copy .env.example and save it as .env, or just run cp .env.example .env
  • Change your database credentials in the .env file
  • Then run php artisan key:generate
  • php artisan migrate
  • Run seeder to create admin user with roles and permissions php artisan db:seed --class=InitSetupSeeder
  • php artisan passport:install to setup Passport (OAuth2)
  • php artisan storage:link to create a symbolic link from the public folder to resources where the profile pictures are uploaded.
  • npm install to install Laravel mix and all npm dependencies
  • Open /resources/assets/js/admin/env.js and change client_secret to value that is stored in oauth_clients table in the secret column under the ID 2
  • And now run npm run hot to run the app with hot reload enabled
  • Finally goto /admin and login with [email protected] / password

About

Boilerplate for Laravel Vuejs & AdminLTE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.3%
  • Vue 14.2%
  • HTML 12.5%