-
Clone the repository:
git clone https://github.com/dev-mo-ali/kanye-app.git cd kanye-quotes
-
Install dependencies:
composer install npm install
-
Copy
.env
file:cp .env.example .env
-
Generate application key:
php artisan key:generate
-
Run migrations:
php artisan migrate
-
Build frontend assets:
npm run dev
-
Serve the application:
php artisan serve
-
use this account for test: "email":"[email protected]", "password":"test1234"
-
Visit
http://localhost:8000/loging
to login to view the quotes. -
Visit
http://localhost:8000/register
to create an account and login to view the quotes.
- token is required to use the api
- use this account for test: "email":"[email protected]", "password":"test1234"
- Fetch X random quotes (replace X with the number of quotes):
Requires authentication token.
GET /api/quotes/X
- The cron job to refresh quotes runs every minute and is defined in
route/console.php
.
- Authentication is required for viewing quotes and accessing the API.