A fork of the original LabTV v1.1.0 made to work in conjunction with LabTV REST Server.
Movie information is no longer retrieved from IMDb-API, but from a local server provided by LabTV REST Server. It still uses json-server + json-server-auth to simulate user authentication and personal database entries for bought and liked movies.
This project was generated with Angular CLI version 13.2.6.
A patch to json-server to enable the --no-delete-cascade flag is included and applied automatically
See the original LabTV README to get more information on the website structure.
- Point your terminal to the project root and run
npm installto download project dependencies;
json-server will be automatically patched via a post-install script
- Run
npm run start:serverto start json-server on port 3000; - Make sure LabTV REST Server is running on
http://localhost:8082/labtv-api/; - Run
ng serve --openand let it build the project. Your browser will open and take you to the project page. - Optional step - only required if you imported the initial version of the database:
- navigate to
/onetime; - click on "Send All Movies" and wait for it to finish;
- click on "Send All Trailers" and wait for it to finish.
- navigate to
A build is also provided, but still requires npm to install some dependencies to enable login and database features.
If you don't install npm and/or project dependencies, the only features available will be Most Popular Movies (Home) and Search (Ricerca)
- Download the build and extract the archive;
- Open a terminal into the extracted folder and run
npm i json-server json-server-auth patch-package(just once); - Run
npx patch-package(just once); - Run
npx json-server --no-delete-cascade --watch db/db.json -m ./node_modules/json-server-auth -r db/routes.json(anytime you want to test the project); - Make sure LabTV REST Server is running on
http://localhost:8082/labtv-api/; - Run
index.htmlon any local server (like Live Server). - Optional step - only required if you imported the initial version of the database:
- navigate to
/onetime; - click on "Send All Movies" and wait for it to finish;
- click on "Send All Trailers" and wait for it to finish.
- navigate to
Icons: Uicons by Flaticon
Font: MADE Tommy by MadeType
