Fullstack web application built using React.js for the frontend and Laravel for the backend REST API. It demonstrates how to structure a real-world project with separate repositories for client and server, RESTful API integration, authentication, responsive UI, and modern UX features.
Frontend: https://frapi.get-virtual-admin.com Backend API: https://rapi.get-virtual-admin.com
This project is divided into two repositories:
🔹 Frontend (React.js):
GitHub: https://github.com/MuhammadZulhusni/Frontend-React-App
🔹 Backend API (Laravel):
GitHub: https://github.com/MuhammadZulhusni/Backend-Laravel-Api
- Email: [email protected]
- Password: password
- RESTful API using Laravel
- Connected to a real MySQL database
- Laravel Passport for API authentication
- Laravel Jetstream for authentication scaffolding
- Admin panel integration
- Contact form handling
- API error/failure handling
- Fully deployable on shared/VPS server
- Consumes Laravel REST API via Axios
- Authentication using access tokens from Laravel Passport
- Page animations and transitions
- Loader and API error states
- React plugins and modular architecture
- Responsive layout (mobile-first)
- Contact form integrated with backend API
Frontend | Backend | Tools / Services |
---|---|---|
React.js | Laravel 12+ | Laravel Passport |
Tailwind / Bootstrap | MySQL | Laravel Jetstream |
React Router | REST API | Axios |
Vite / Webpack | PHP 8+ | GitHub / Git |
# Clone Backend (Laravel)
git clone https://github.com/your-username/laravel-api.git
# Clone Frontend (React)
git clone https://github.com/your-username/react-frontend.git
cd project-name
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan passport:install
php artisan serve
cd react-frontend
npm install
npm run dev
Make sure to update the API URL in your React
.env
file:
VITE_API_BASE_URL=http://127.0.0.1:8000/api
- Backend uses Laravel Passport to issue access tokens
- Frontend stores access tokens securely (e.g., in localStorage or HttpOnly cookies)
- Protected routes and API calls require valid token
- Users can register, login, logout, and access secured API endpoints