A Laravel Boilerplate for Reactjs (16) and Laravel (5.7) with passport and socialite.
Please run php artisan migrate:seed --refresh
if you get errors after [07ad643]
Download and extract to project root folder: https://www.dropbox.com/s/hkr68o0x4x58v33/component.zip?dl=0
- Rename
.env.example
to.env
- Update DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD, and Social IDs in
.env
file to yours. - In command line :
composer update
php artisan key:generate
php artisan notifications:table
php artisan migrate
php artisan passport:install
php artisan db:seed
- (if you want to have an admin account. email: [email protected] | pass: secret)
php artisan storage:link
npm install
- Install "Laravel Echo Server" by typing in command line:
npm install -g laravel-echo-server
- In command line:
laravel-echo-server init
laravel-echo-server start
- Set up laravel-echo-server.json config
php artisan queue:work
npm run dev
ornpm run watch
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
This repository already configured with:
- Animate css => https://daneden.github.io/animate.css/
- Redux persist (For local storage) => https://www.npmjs.com/package/redux-persist
- Socialite => (https://laravel.com/docs/5.6/socialite)
- Passport => (https://laravel.com/docs/5.6/passport)
- Bootstrap 4
- BlueprintJS
Semantic UI React => https://react.semantic-ui.com/introduction(on-going migration to BlueprintJS 3)
- 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'