Coder Social home page Coder Social logo

anowarcst / laravel-vue-crud-starter Goto Github PK

View Code? Open in Web Editor NEW
393.0 20.0 200.0 9.75 MB

Laravel 8 + Vue 2 + AdminLTE 3 based Curd Starter template

License: MIT License

PHP 47.84% Vue 38.00% Dockerfile 0.47% Blade 13.70%
laravel curd-starter-template phpunit coverage-report vue2 pagination dashboard profile vue vuejs adminlte laravel-framework vuetify

laravel-vue-crud-starter's Introduction

Laravel+Vue Crud Starter

Build Status

About Repository

A very simple Laravel 8 + Vue 2 + AdminLTE 3 based Curd Starter template for SPA Application.

Tech Specification

  • Laravel 8
  • Vue 2 + VueRouter + vue-progressbar + sweetalert2 + laravel-vue-pagination
  • Laravel Passport
  • Admin LTE 3 + Bootstrap 4 + Font Awesome 5
  • PHPUnit Test Case/Test Coverage

Features

  • Modal based Create+Edit, List with Pagination, Delete with Sweetalert
  • Login, Register, Forget+Reset Password as default auth
  • Profile, Update Profile, Change Password, Avatar
  • Product Management
  • User Management
  • Settings: Categories, Tags
  • Frontend and Backend User ACL with Gate Policy (type: admin/user)
  • Simple Static Dashboard
  • Developer Options for OAuth Clients and Personal Access Token
  • Build with Docker

Installation

  • git clone https://github.com/AnowarCST/laravel-vue-crud-starter.git
  • cd laravel-vue-crud-starter/
  • composer install
  • cp .env.example .env
  • Update .env and set your database credentials
  • php artisan key:generate
  • php artisan migrate
  • php artisan db:seed
  • php artisan passport:install
  • npm install
  • npm run dev
  • php artisan serve

Install with Docker

  • docker-compose up -d
  • docker exec -it vue-starter /bin/bash
  • composer install
  • cp .env.example .env
  • php artisan key:generate
  • php artisan migrate
  • php artisan db:seed
  • php artisan passport:install
  • Application http://localhost:8008/
  • Adminer for Database http://localhost:8080/
  • DBhost: yourIP:3307, user: root, Password: 123456

Unit Test

run PHPUnit

# run PHPUnit all test cases
vendor/bin/phpunit
# or Feature test only
vendor/bin/phpunit --testsuite Feature

Code Coverage Report

# reports is a directory name
vendor/bin/phpunit --coverage-html reports/

A reports directory has been created for code coverage report. Open the dashboard.html.

Credit

This repository is motivated by Hujjat/laravStart and his awesome video tutorial in Youtube.

License

MIT license.

laravel-vue-crud-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-vue-crud-starter's Issues

Update to Laravel 8

Hello,

This is a nice project(template), it would be great to have laravel 8 support

Standard User is able to Create Oauth Clients and Access Tokens

A Standard User is able to open /settings/developer and create OAuth clients as well as Personal Access Tokens.
He can also visit all /other settings pages, but don't get any further information.

The Routes to /settings (admin area) do need some protection.

Are the documentation update?

I followed the installation as indicated in the documentation, unfortunately throws an error GET http://localhost:8888/css/app.css net::ERR_ABORTED 404 (Not Found) AdminLTE.css.map:13.

Also look for the adminlte (almasaeed2010/adminlte) folder in Vendor and I did not find it,
Finally the configuration file (AdminLTE.php) in the config folder is not found.

great job. regards

Datatables

Hello Sir, Can You Add datatables in this project?
Thank you.

Type User

hi , it is possible to create new user types?

New Product Tags

I cannot add new tags to a product.

file: "/app/Http/Controllers/API/V1/ProductController.php"
line: 55
message: "Undefined index: id"

There's a check missing if the tag exists and if not to create it before syncing.

Missing sessions table

The app does not work.
I get the following error when I try to get to the server:

Illuminate\Database\QueryException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'demo.sessions' doesn't exist (SQL: select * from sessions where id = CNIyRisDeSAqOdMZrpAYocoBR6TKDlN5ePXA5mJl limit 1)

Yes, I ran php artisan migrate --seed to see create and seed the database (demo).

Component file not reflect

i try to change the column name in Component/Users.vue, but it is not reflected, FYI I'm running using docker

PHP 7.4 required via Docker

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.29. in /var/www/vendor/composer/platform_check.php on line 24

(fresh installation)

Hide sidemenu on link click

How to auto-hide sidemenu when link is clicked in mobile view ? Sidemenu works better if you add linkActiveClass: 'active' in VueRouter.

Does this have a CRUD generator?

Does this have a CRUD generator for laravel and vue.
Maybe with the relationship as well as crudbooster.

That would be wonderful.

Docker / BrowserSync / Mix

I've got this all setup and working flawlessly besides the "browserSync" no matter what I try I can not get it to load.

Is there a simple guide or tutorial on how to get it to work with this package?

Possible to enable overlayscrollbars?

How would I enable overlayscrollbars for this? It appears it's still there, and in the plugins directory I'm just having trouble getting them to work without install the overlayscrollbars-vue npm

Which Node and npm version is required

Hi,

'npm run dev' was not success with nvm node versions e.g. 12.x / 13.x / 14.x / 15.x / 16.x / 17.x after run 'npm install'

What should we do for that?

Thanks in advance!

Uncaught TypeError: Cannot set properties of undefined (setting '$gate')

I installed this application step by step by the document
when I ran npm run watch
I got `Additional dependencies must be installed. This will only take a moment.

Running: npm install vue-loader@^15.9.7 --save-dev --legacy-peer-deps

Finished. Please run Mix again.

`
after that I ran again and got this error in my console

Uncaught TypeError: Cannot set properties of undefined (setting '$gate')

Suggestion: Search box

Can you please make a search box on the products page where whenever you type a letter, the list on the table will be filtered? thank you very much in advance.

adminer connection issue

Hi There,

What are the correct credentials for logging into adminer ? I tried with :
host: db:3307
user: root
password: 123456

But it does not work, it always says connection refused.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.