Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.04 KB

File metadata and controls

86 lines (62 loc) · 2.04 KB

W T W

What To Watch

study project by Olga Marinina

About project

"What to watch" is a new generation online cinema. Watch the latest movies or series episodes absolutely free and in the best quality. Leave reviews, rate and choose only the best from the world of big cinema.

API specification

Check it here.

It's not full document so, please, check /routes/api.php.

External API to get film info

  1. Omdb API
  2. HTML Academy API

Getting started

For start with this project you should use the following command:

./vendor/bin/sail up

Then for using short command you should create alias:

alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'

And now you can do the first command with:

sail up

Migrations

All db migrations were prepared, so just run:

sail artisan migrate

Data

1. Strict data

In this project we have default set data for file type, film status, user role, link type. So these data will be needed for you any way, so they were added in migrations

2. Fake data

To test smth and check website operation you should add fake data. They were prepared too, soo just run:

sail artisan db:seed

Tests

We work here with PHPUnit. To start tests just run:

sail artisan test

For concrete test:

sail artisan test --filter=<name>