Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumon766/laravel-react-auth
https://github.com/sumon766/laravel-react-auth
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sumon766/laravel-react-auth
- Owner: sumon766
- Created: 2024-03-21T17:13:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-23T12:09:46.000Z (10 months ago)
- Last Synced: 2024-10-21T19:37:50.445Z (3 months ago)
- Language: PHP
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🙏 Acknowledgements](#acknowledgements)# 📖 Laravel React Auth with Sanctum
**Laravel-React-Auth** is a project created using laravel as backend and react as frontend where a general authentication system is implemented using API. A user can authenticate him/her self through the frontend React and login to the authorized access area with the help of Access Token.
Client
Server
Database
Authentication package
- **React based frontend**
- **Laravel based backend**
- **Laravel Sanctum for API based authentication**
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
Example command:
```sh
npm install
```
### Setup
Clone this repository to your desired folder:
Example commands:
```sh
cd my-folder
git clone https://github.com/sumon766/laravel-react-auth.git
```
### Install
Install this project with:
Example command:
```sh
cd my-project/react-auth
npm install
```
### Usage
To run the project, put the project in your desired server (Xampp/Wamp) and create a MySQL database. After that edit the .env file from the root of the project directory. After setting the server and editing database details in .env, run the following command:
Example command:
```sh
php artisan migrate
```
### Run the project
To run the project, open command prompt/terminal from the root of your project and run:
Example:
```sh
php artisan server
```
And, go to react-auth directory and open another terminal and run:
```sh
npm run dev
```
Now, go to any browser and open the link:
```sh
localhost:3000
```
👤 **MD Mursedul Islam**
- GitHub: [@githubhandle](https://github.com/sumon766)
- Twitter: [@twitterhandle](https://twitter.com/sumon766)
- LinkedIn: [LinkedIn](https://linkedin.com/in/sumon766)
- [ ] **Design the frontend stunningly**
- [ ] **List of users**
- [ ] **Add post and edit them as needed**