Skip to content
/ luna Public

Luna is a Laravel Passport Socialite ReactJS Boilerplate

Notifications You must be signed in to change notification settings

kitseno/luna

Repository files navigation

Luna

ReactJS

A Laravel Boilerplate for Reactjs (16) and Laravel (5.7) with passport and socialite.

Notice

Please run php artisan migrate:seed --refresh if you get errors after [07ad643]

Component file

Download and extract to project root folder: https://www.dropbox.com/s/hkr68o0x4x58v33/component.zip?dl=0

Usage :

  1. Rename .env.example to .env
  2. Update DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD, and Social IDs in .env file to yours.
  3. In command line :
    • composer update
    • php artisan key:generate
    • php artisan notifications:table
    • php artisan migrate
    • php artisan passport:install
    • php artisan db:seed
    • php artisan storage:link
    • npm install
  4. Install "Laravel Echo Server" by typing in command line:
    • npm install -g laravel-echo-server
  5. In command line:
    • laravel-echo-server init
    • laravel-echo-server start
    • Set up laravel-echo-server.json config
  6. php artisan queue:work
  7. npm run dev or npm run watch
Update the Passport keys in .env file

Copy the keys for personal and password grants in .env file

PERSONAL_CLIENT_ID=1
PERSONAL_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PASSWORD_CLIENT_ID=2
PASSWORD_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Features:

This repository already configured with:

To-Do list :

  • User registration
  • User login
  • Forgot password
  • Social login (Facebook, Office365, Twitter, LinkedIn, Google)
  • Laravel permissions
  • React permissions (CASL)
  • Tests
  • CRUDs
  • Socket.IO (for Real-time functionality)

This project is open for contribution. [email protected]

Credits to [email protected] and https://github.com/moeen-basra
This boilerplate is derived from 'react-laravel-with-jwt-authentication' and 'https://github.com/moeen-basra/laravel-react'

About

Luna is a Laravel Passport Socialite ReactJS Boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published