lariele/movie-api-tmdb

Import Movies from TMDB Api.

v0.1 2023-01-26 11:17 UTC

This package is auto-updated.

Last update: 2024-11-07 14:56:44 UTC


README

Latest Stable Version Latest Tag License

Import Movies from TMDB API

Installation

composer require lariele/movie-api-tmdb

Database

Run Database migrations

php artisan migrate

Seed Database

Publish DB migrations & seeders

php artisan vendor:publish --provider="Lariele\MovieApiTMDB\MovieApiTMDBServiceProvider" --tag=database

Publish Config

php artisan vendor:publish --provider="Lariele\MovieApiTMDB\MovieApiTMDBServiceProvider" --tag=config

Get API key from TMDB Api and add to env - MOVIEAPI_TMDB_KEY

MOVIEAPI_TMDB_KEY=tmdb_secret_key

Import and convert movies from TMDB

php artisan movie-api-tmdb:get-movies-discover

Feed DB with Fake TMDB movies

php artisan db:seed MovieTMDBSeeder

Development

Publish views

php artisan vendor:publish --provider="Lariele\MovieApiTMDB\MovieApiTMDBServiceProvider" --tag=views

Dev

npm run dev

Build

npm run build