Skip to content

zaichaopan/laravel-react-spa

Repository files navigation

Laravel-React SPA

Starter Boilerplate SPA made with Laravel and React.

Features

  • Laravel 7, React, React Router
  • React Hook, React Context for state management
  • Authentication with JWT
  • Login, register, reset password
  • Flexible Page Layout
  • Flexible, Protected Routing
  • Tailwind CSS
  • ESlint

Installation

  • Clone the repo
  • Installing all Composer & NPM dependencies.
composer install && npm install
  • Copy .env.example to .env
  • Generate app key
php artisan key:generate
  • Run database migration
php artisan migrate:fresh
  • Generate JWT secret
php artisan jwt:secret
  • Compiling Assets
npm run dev
  • Boot up a server
php artisan serve

Releases

No releases published

Packages

No packages published