Sea Cinema is an online cinema website that uses Laravel and API. This website provides complete information about the Sea Cinema cinema, starting from complete information about the film, title, synopsis, to trailers.
This website was built using the Laravel framework, which is a popular PHP framework and has many features that support website development. Laravel also provides support for APIs, which allow these websites to access data from other sources.
- Clone this project
- Install Composer dependencies
composer install
- Install npm dependencies
npm install
- Create a copy of your .env file
cp .env.example .env
- Adjust your database in
DB_DATABASE
- Link your storage to public
php artisan storage:link
- Run migration and update database
php artisan migrate --seed
- Once you have the API key, you can add it to your Laravel application's .env file. Open the .env file and find the following line:
MOVIE_DB_API_KEY=
- Replace the empty value with your API key. For example, if your API key is
1234567890abcdef
, you would change the line to:MOVIE_DB_API_KEY=1234567890abcdef
- Generate an app encryption key
php artisan key:generate
- It requires 2 terminals to run it
- Terminal 1: Run Laravel server
php artisan serve
- Terminal 2: Run Tailwind CSS
npm run dev
- Laravel Framework Version 10.41.0
- PHP Version 8.2.12
- Tailwind CSS Version 3.4.1
The Laravel framework is open-sourced software licensed under the MIT license.