https://github.com/davidobinna/fullstack-react-laravel-api-user-resource-managment
A fullstack application with cors policy, middlwares, token-authentication, token-authorization, api-context, error handling and users api resource controller-CRUD
https://github.com/davidobinna/fullstack-react-laravel-api-user-resource-managment
Last synced: about 1 year ago
JSON representation
A fullstack application with cors policy, middlwares, token-authentication, token-authorization, api-context, error handling and users api resource controller-CRUD
- Host: GitHub
- URL: https://github.com/davidobinna/fullstack-react-laravel-api-user-resource-managment
- Owner: davidobinna
- Created: 2023-01-12T21:05:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T21:06:48.000Z (over 3 years ago)
- Last Synced: 2025-02-01T18:43:06.204Z (over 1 year ago)
- Language: PHP
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel React Example Full Stack Application
Example Application build with Laravel and React
> The repo was created while I was working on the following [YouTube tutorial](https://youtu.be/qJq9ZMB2Was)
## Demo
https://laravel-react.com
## Installation
Make sure you have environment setup properly. You will need PHP8.1, composer and Node.js.
1. Download the project (or clone using GIT)
2. Copy `.env.example` into `.env` and configure database credentials
3. Navigate to the project's root directory using terminal
4. Run `composer install`
5. Set the encryption key by executing `php artisan key:generate --ansi`
6. Run migrations `php artisan migrate --seed`
7. Start local server by executing `php artisan serve`
8. Open new terminal and navigate to the `react` folder
9. Copy `react/.env.example` into `.env` and adjust the `VITE_API_BASE_URL` parameter
9. Run `npm install`
10. Run `npm run dev` to start vite server for React