Login Register JWT ReactJS is a website that provides login and registration features for users, enabling secure and efficient access. Built with Laravel and ReactJS, this site offers fast and responsive authentication, delivering a seamless user experience for managing their accounts.
- Laravel 9
- MySQL Database
- ReactJS - Create React App
- tymon/jwt-auth
- Main features available in this application:
- Login
- Register
Follow the steps below to clone and run the project in your local environment:
-
Clone repository:
git clone https://github.com/Akbarwp/API-JWT.git
-
Install dependencies use Composer and NPM:
composer install npm install
-
Copy file
.env.exampleto.env:cp .env.example .env
-
Generate application key:
php artisan key:generate
-
Setup database in the
.envfile:DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=logreg_react DB_USERNAME=root DB_PASSWORD= -
Run migration database:
php artisan migrate
-
Run website:
npm run start php artisan serve