This project has been archived
A website using TMDB's API to retrieve movies. This document provides a guide on how to set up and initialize the project on your local machine. Ensure you follow the steps outlined below to have a working development environment.
Before you start, make sure you have the following software installed on your machine:
- Composer: Dependency manager for PHP.
- PHP: PHP programming language (>= 7.4).
- SQL or PostgreSQL: Database server.
- TMDB: Get a API Read Access Token on TMDB
Follow these steps to set up the Laravel project:
git clone git@github.com:HE-Arc/BlueFlix.git
cd BlueFlix
composer install
cp .env.example .env
php artisan key:generate
Update the .env
file with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
Update the .env
file with external API details:
API_KEY="Bearer your_token"
API_URL="https://api.themoviedb.org/3"
API_IMAGE_URL="https://image.tmdb.org/t/p/original"
API_LANGUAGE="en-US"
php artisan migrate
php artisan serve
Visit http://127.0.0.1:8000 in your browser to view the application.