An open API service indexing awesome lists of open source software.

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

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`