All Projects → cretueusebiu → Laravel Nuxt

cretueusebiu / Laravel Nuxt

Licence: mit
A Laravel-Nuxt starter kit.

Projects that are alternatives of or similar to Laravel Nuxt

Laravel Vuejs.com
Laravel and VueJs Blog, using Laravel nova, GraphQL, NuxtJs, Apollo and ...more
Stars: ✭ 54 (-94.27%)
Mutual labels:  laravel, nuxt, ssr, spa
Awes Io
Awes.io // boilerplate based on Vue, Nuxt, TailwindCSS plus Laravel as a backend. 🤟
Stars: ✭ 599 (-36.48%)
Mutual labels:  laravel, nuxt, ssr, spa
Nuxt.js
The Intuitive Vue(2) Framework
Stars: ✭ 38,986 (+4034.25%)
Mutual labels:  nuxt, universal, server-rendering, ssr
Next Routes
Universal dynamic routes for Next.js
Stars: ✭ 2,354 (+149.63%)
Mutual labels:  universal, server-rendering, ssr
Laravel Nuxt Js
Build a SPA with Laravel and Nuxt.
Stars: ✭ 146 (-84.52%)
Mutual labels:  laravel, nuxt, spa
Firebase Functions Next Example
Host a Next.js SSR React app on Cloud Functions for Firebase with Firebase Hosting
Stars: ✭ 215 (-77.2%)
Mutual labels:  universal, server-rendering, ssr
Nuepress
📖 Nuxt.js + WordPress REST API
Stars: ✭ 524 (-44.43%)
Mutual labels:  nuxt, server-rendering, ssr
Hackernews
HackerNews clone built with Nuxt.js
Stars: ✭ 758 (-19.62%)
Mutual labels:  nuxt, universal, ssr
Laravel Nuxt
Build a SPA with Laravel and Nuxt.
Stars: ✭ 124 (-86.85%)
Mutual labels:  laravel, nuxt, spa
Vue Gates
🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
Stars: ✭ 184 (-80.49%)
Mutual labels:  laravel, nuxt, ssr
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+362.99%)
Mutual labels:  ssr, spa
Vue Slick Carousel
🚥Vue Slick Carousel with True SSR Written for ⚡Faster Luxstay
Stars: ✭ 447 (-52.6%)
Mutual labels:  nuxt, ssr
Rfx Stack
RFX Stack - Universal App
Stars: ✭ 427 (-54.72%)
Mutual labels:  universal, ssr
Nuxt Firebase Sns Example
Nuxt v2 & Firebase(Hosting / Functions SSR / Firestore), Google Auth SNS Example.
Stars: ✭ 485 (-48.57%)
Mutual labels:  nuxt, ssr
Hoppscotch
👽 Open source API development ecosystem https://hoppscotch.io
Stars: ✭ 34,569 (+3565.85%)
Mutual labels:  nuxt, spa
Cra Universal
🌏 Create React App companion for universal app. No eject, auto SSR, zero config, full HMR, and more (inactive project)
Stars: ✭ 419 (-55.57%)
Mutual labels:  universal, ssr
React Server
🚀 Blazing fast page load and seamless navigation.
Stars: ✭ 3,932 (+316.97%)
Mutual labels:  universal, ssr
Universal Starter
Angular 9 Universal repo with many features
Stars: ✭ 518 (-45.07%)
Mutual labels:  universal, ssr
Sitemap Module
Sitemap Module for Nuxt
Stars: ✭ 539 (-42.84%)
Mutual labels:  nuxt, ssr
Vuecnodejs
⚽️🎉Vue初/中级项目,CnodeJS社区重构。( a junior project of Vue.js, rewrite cnodejs.org ) 预览(DEMO):
Stars: ✭ 705 (-25.24%)
Mutual labels:  nuxt, ssr

Laravel-Nuxt

Build Status Total Downloads Latest Stable Version

A Laravel-Nuxt starter project template.

Features

  • Nuxt 2
  • Laravel 8
  • SPA or SSR
  • Socialite integration
  • VueI18n + ESlint + Bootstrap 4 + Font Awesome 5
  • Login, register, email verification and password reset

Installation

  • composer create-project --prefer-dist cretueusebiu/laravel-nuxt
  • Edit .env and set your database connection details
  • (When installed via git clone or download, run php artisan key:generate and php artisan jwt:secret)
  • php artisan migrate
  • npm install

Usage

Development

# start Laravel
php artisan serve

# start Nuxt
npm run dev

Access your application at http://localhost:3000.

Production

npm run build

Enable SSR

  • Edit client/nuxt.config.js and set ssr: true
  • Edit .env to set APP_URL=http://api.example.com and CLIENT_URL=http://example.com
  • Run npm run build and npm run start

Nginx Proxy

For Nginx you can add a proxy using the follwing location block:

server {
    location / {
        proxy_pass http://http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

Process Manager

In production you need a process manager to keep the Node server alive forever:

# install pm2 process manager
npm install -g pm2

# startup script
pm2 startup

# start process
pm2 start npm --name "laravel-nuxt" -- run start

# save process list
pm2 save

# list all processes
pm2 l

After each deploy you'll need to restart the process:

pm2 restart laravel-nuxt 

Make sure to read the Nuxt docs.

Socialite

This project comes with GitHub as an example for Laravel Socialite.

To enable the provider create a new GitHub application and use https://example.com/api/oauth/github/callback as the Authorization callback URL.

Edit .env and set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET with the keys form your GitHub application.

For other providers you may need to set the appropriate keys in config/services.php and redirect url in OAuthController.php.

Email Verification

To enable email verification make sure that your App\User model implements the Illuminate\Contracts\Auth\MustVerifyEmail contract.

Notes

  • This project uses router-module, so you have to add the routes manually in client/router.js.
  • If you want to separate this in two projects (client and server api), move package.json into client/ and remove config path option from the scripts section. Also make sure to add the env variables in client/.env.

Changelog

Please see CHANGELOG for more information what has changed recently.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].