GithubHelp home page GithubHelp logo

vuetified's Introduction

Vuetified

Laravel + Vuetify realtime starter app.

vuetified

Table of Contents

  1. Requirements
  2. Installation
  3. Stacks Used
  4. Plugins
  5. Theme
  6. Initial State
  7. Linting
  8. Issues
  9. Pull Request

Requirements

  • PHP 7.1+
  • Composer
  • Node JS
  • NPM
  • Redis
  • VS Code
  • Laravel Valet (NGINX) or use Laradock or Homestead

Installation

  1. git clone https://github.com/codeitlikemiley/vuetified YOURPROJECTNAME
  2. cd YOURPROJECTNAME
  3. composer install
  4. yarn
  5. cp env.example .env
  6. php artisan passport:install
  7. echo:generate
  8. set your .env
  • If you want to use Laravel echo then change this to true
ECHO_ON=false
  1. php artisan migrate:fresh --seed
  2. node websocket
  3. Serve Your Site
    • laravel valet - valet link YOURSITE
    • laradock - docker-compose up -d nginx redis mysql
    • homestead - homestead up yourprojectname.test/

Stacks Used

  • Laravel
  • Vue
  • Laravel Passport for Oauth and authentication
  • Vuetified for UI
  • Laravel Echo for real-time broadcasting
  • Laravel Horizon for queueing jobs
  • Laravel Socialite for integration of third-party OAuth
  • VS Code plugins for intelligent code fixing and linting

Plugins

Here you can add extra plugins to your app:

//! Order is important if other services depend on it */
//! Primary Services add here

import './services/vuetify' //! Configuring Themes and Components

import './services/vue-axios' //! For making API calls

import './services/bus' //! Global event bus

import './services/vuex' //! State management

import './services/echo' //! Websocket

import './services/initial-state' //! Seed initial data to your app 
//! @ Vuetified/Configuration/ProvidesScriptVariables.php

import('./services/forms') //! Declare your global form objects here

import './services/vee-validate' //! Form validation

import './services/youtube' //! YouTube component


//! Secondary services that depend on the primary services
//! i.e: Vuex in our ACL service
import './services/acl'

Theme

Open resources/assets/js/services/vuetify.js and the edit theme object:

theme: {
        primary: '#ef9a9a',
        secondary: '#607d8b',
        accent: '#4db6ac',
        error: '#b71c1c',
        info: '#bbdefb',
        success: '#a5d6a7',
        warning: '#ffc107'
    }

Inital State

Open Vuetified/Configuration/ProvidesScriptVariables.php

Add your initial data as an array:

public static function scriptVariables()
    {
        return [
            'csrfToken' => csrf_token(),
            'env' => config('app.env'),
            'api_endpoint' => config('app.api'),
            'sponsor' => self::getSponsor()
        ];
    }

Linting

If your using VS Code which I highly recommend since they offer great plugins for Vue and ES lint.

You can PM me directly at Facebook So I can share my settings.

Install VS Code, then install this plugin Settings Sync.

Issues

If you have seen any bugs please report it by making an issue.

Pull Request

If you want to add components to be part of vuetified please make a pull request.

vuetified's People

Contributors

codeitlikemiley avatar lcherone avatar vuetified avatar patrickcurl avatar andyftw avatar

Watchers

James Cloos avatar

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.