/laranuxt

laravel and nuxt.js boilerplate

Primary LanguagePHP

Laravel + Nuxt.js Boilerplate

What is included

  • NUXT front end, a progressive Vue.js framework - v2.13.0

    • @nuxtjs/axios to communicate with our API - v5.11.0
    • @nuxtjs/pwa Heavily tested, updated and stable PWA solution - v3.0.0
    • @nuxt/components Auto import components - v1.0.3
    • @nuxtjs/tailwindcss a utility-first framework - now with PurgeCSS built in - v2.0.0
    • stylus - expressive, dynamic, robust css - v0.54.7
    • pug - high-performance template engine - v3.0.0
    • mdi - material design icons with a ton of contributed ones as well - v5.3.45
  • Laravel - for our API - v7.16.1

    • metapi - API helpers and utilities - v2.0.0
    • debugbar - awesome debugbar for our API - v3.3.3
    • ide-helper - Helper files to enable accurate IDE autocompletion - v2.7.0
    • dump-server - Collect your dump call outputs and show them separately - v1.4.0

Installation

  • clone from github
  • run yarn and composer install to install all of your deps
  • copy .env.example to .env and configure it to your likings
    • i do this to speed up reactivity and compilation time
  • running yarn mdi will copy all the fonts and css to resources/static/
  • run yarn logs to create laravels needed storage logs folders
  • TL;DR git clone git@github.com:acidjazz/laranuxt.git; cd laranuxt; yarn; composer install; yarn mdi; cp .env.example .env; yarn logs;

Local environment

  • run yarn api (alias for ./artisan serve) in another terminal for our laravel API
  • run yarn dev in one terminal for our nuxt dev setup