• Stars
    star
    542
  • Rank 81,982 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐘 A Laravel 8 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.

Laravel Vue Boilerplate

A Laravel 8 Single Page Application boilerplate using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass and Pug with:

  • A users CRUD if the current user is an admin written in RESTful and GraphQL.
  • i18n for English, Portuguese and Spanish, based on browser language settings.
  • Authentication using Laravel Sanctum.
  • WebSockets with Laravel Echo and Pusher.
  • Working service worker with Workbox for better PWA development.
  • Dockerfile configured with PHP 7.4, Node.js 12 and Composer, with MySQL and phpMyAdmin on Docker Compose.

You can check it live on this website, with the credentials:

Admin user

E-mail: [email protected]
Password: admin

Normal user

E-mail: [email protected]
Password: normal

Notice that all the changed data on that website sample, such as password and CRUD actions, won't be stored.

Main dependencies

Front-end:

The TypeScript code tries to follow the Airbnb JavaScript Style Guide, the linters are already included and configured.

Back-end:

Steps to run it:

Remember to search for "TODO change" on the files to change example code.

With Docker

Run:

docker-compose up --build

After it starts, just on the first time, run on another terminal:

docker exec laravel-vue-boilerplate bash -c "composer start && npm start"

The application will be available on http://localhost:8000 and the phpMyAdmin on http://localhost:8081

Common way

Rename the .env.example file to .env, and fill it with your local info, then:

Install PHP and JavaScript dependencies:

composer install
npm install

Generate Laravel keys:

php artisan key:generate

Generate i18n string for Vue, based on Laravel i18n files:

php artisan vue-i18n:generate

Migrate and seed the database:

php artisan migrate --seed

Compile all the front-end stuff:

npm run prod

More Repositories

1

thanosjs

Node.js implementation of Thanos JS website.
JavaScript
35
star
2

gdg-sp

πŸ‘¨β€πŸ’» Multi-platform app developed for the Google Developers Group SΓ£o Paulo.
C#
11
star
3

al-browser-uwp

🌐 A simple Universal Windows Platform browser written in C#.
C#
11
star
4

droidex

πŸ‘Ύ A PokΓ©dex app for Android.
Java
7
star
5

talk-graphql-php

Code of my Implementing GraphQL with PHP Talk.
PHP
5
star
6

project-guidelines

πŸ“” Some guidelines I like to use on my personal and professional projects.
5
star
7

alefe-ultimate-programmer

πŸ‘¨β€πŸ’» πŸŽ† 2D Unity Game based on Naruto Ultimate Ninja.
C#
4
star
8

xamtweet

🐦 Twitter client using Xamarin.Forms, Prism and Azure.
C#
4
star
9

laravel-vue-workshop

Code of my Building a SPA with Laravel and Vue.js workshop.
PHP
3
star
10

gulp-typescript-pug-sass

A simple project with a front-end workflow using Gulp, TypeScript, Pug and Sass.
HTML
3
star
11

php-tutorial

πŸ“– 🐘 Support Material for my Introduction to PHP Language Workshop.
2
star
12

workshop-react

Code of my React: Zero to Hero workshop.
JavaScript
2
star
13

talk-nativescript

Code of my NativeScript: Native Apps with Angular talk
JavaScript
2
star
14

talk-laravel-vue-graphql

Code of my Implementing GraphQL with Laravel talk
PHP
2
star
15

quizprogramming-uwp

Code of the application which I developed in the second stage of the Microsoft Students 2 Business.
C#
2
star
16

vue-intro

Code of my Introduction to Vue.js talk.
Vue
2
star
17

talk-vanilla-wc

Code of my Web Components with Vanilla.js talk.
HTML
2
star
18

gama-angular-exercicios

TypeScript
2
star
19

alefesouza

πŸ’» The Alefe Souza CLI.
JavaScript
2
star
20

schoolapp

Android application which aims to have the schedules and agendas of my former high school.
Java
1
star
21

gitlab-ci-sample

Simple application with continuous deployment using GitLab CI.
PHP
1
star
22

talk-firebase-as-backend

Code of my Firebase as back-end talk.
HTML
1
star
23

gama-angular

TypeScript
1
star
24

typescript-vue-cli2

Simple TypeScript example using vue-cli 2.
JavaScript
1
star
25

schoolapp-chrome

Code of the Google Chrome Extension of my app RebuApp.
HTML
1
star
26

workshop-gitlab

Code of my workshop about GitLab.
1
star
27

restaurantapp

Web application for restaurants.
C#
1
star
28

talk-web-apis-from-scratch

Code of my Web APIs from Scratch talk.
HTML
1
star
29

dotfiles

πŸ““ My Vim and Zsh configuration, and my Arch Linux/VS Code favorite packages/extensions.
Vim Script
1
star
30

tweets-angular2

Web application developed in Angular 2 using the Twitter API.
TypeScript
1
star
31

camera-color-yeelight

Android app to simulate Ambilight/Syncbox effect with Yeelight RGB bulbs.
Java
1
star
32

descicloapp-firefox

Source-code of the most recent version of DescicloApp for Firefox.
JavaScript
1
star
33

ionic3-electron

πŸ“± Ionic 3 and Electron application sample using Meetup API.
TypeScript
1
star