git clone https://github.com/smriad/anime-app.git
cd anime-app
Install the required PHP dependencies:
composer install
Copy .env.example to .env
cp .env.example .env
Change .env according your mysql setup -
DB_HOST=127.0.0.1
DB_PORT=3306 DB_DATABASE=anime_db
DB_USERNAME=root
DB_PASSWORD= `
php artisan key:generate
php artisan migrate `
To import anime data from the Jikan API:
php artisan anime:import `
Start the Laravel development server:
php artisan serve `
The application will be available at http://127.0.0.1:8000.
You can test the API by accessing the anime data:
curl http://127.0.0.1:8000/api/anime/{slug} `
Replace {slug} with the actual anime slug.