https://github.com/ramsescupps/laravel-react-with-jwt-auth
https://github.com/ramsescupps/laravel-react-with-jwt-auth
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ramsescupps/laravel-react-with-jwt-auth
- Owner: ramsescupps
- Created: 2024-08-29T17:12:05.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-08-29T17:12:51.000Z (9 months ago)
- Last Synced: 2025-01-30T08:19:06.852Z (4 months ago)
- Language: PHP
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel(8.6.0) and React(17.0.2) with JWT Authentication
User Login & Signup API## Prerequisite
1. Make sure you have [composer](https://getcomposer.org/download/) installed.
2. Make sure you have latest stable version of [node](https://nodejs.org/en/download/) installed.### Setup and Installation
- `git clone`
#### Laravel
- `create a .env file copy content from .env.example and update the values`
- `Update DB_HOST, DB_DATABASE, DB_USERNAME and DB_PASSWORD in .env file to yours.`
- `composer install && composer update`
- `php artisan migrate:refresh`
- `php artisan key:generate`
- `php artisan jwt:secret`
- `php artisan serve`
#### React
- `create a .env file copy content from .env.example and update the values`
- `Update REACT_APP_API_URL and REACT_APP_JWT_SECRET(copy from laravel .env file)`
- `npm install`
- `npm start`