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.
In order to run this project you need:
Example command:
npm install
Clone this repository to your desired folder:
Example commands:
cd my-folder
git clone https://github.com/sumon766/laravel-react-auth.git
Install this project with:
Example command:
cd my-project/react-auth
npm install
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:
php artisan migrate
To run the project, open command prompt/terminal from the root of your project and run:
Example:
php artisan server
And, go to react-auth directory and open another terminal and run:
npm run dev
Now, go to any browser and open the link:
localhost:3000
๐ค MD Mursedul Islam
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
- Design the frontend stunningly
- List of users
- Add post and edit them as needed