This is a web application built using Vue.js and Laravel with Inertia.js. The app manages OTP codes with a secret key, implements role-based access control using Spatie Permissions, and integrates an API for requesting OTP codes.
- Vue.js & Laravel with Inertia.js for a seamless SPA experience.
- OTP Management using a secret key.
- Spatie Permissions for role and permission handling.
- API Integration to request OTP codes securely.
- Laravel
- Vue.js
- Inertia.js
- Spatie Permissions
- API for OTP requests
-
Clone the repository:
git clone https://github.com/mehdighallam6/authguard.git cd authguard
-
Install dependencies:
composer install npm install
-
Set up environment variables:
cp .env.example .env
- Update
.env
with database details.
- Update
-
Generate application key:
php artisan key:generate
-
Run migrations and seed roles/permissions:
php artisan migrate --seed
-
Build frontend assets:
npm run dev
POST /api/request-otp
- Request a new OTP.