Live Demo https://emmanueltsouris.github.io/media-browser/
Media Browser is an updated version of ng2-MediaBrowser, an Angular 2 application I created to take a simple json list of media files and display them in a grid. When you select a thumbnail, a detail page is shown which lets you watch the video and read the description.
I wrote the original to learn the Angular Cli, and figured it was time to update the app to a newer version of Angular.
This project was originally generated with Angular CLI version 7.3.5 and has been upgraded to each major version (8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18) by using https://update.angular.io/
as a guide.
Thumbnails and Video content are stored in a seperate repo to keep this repo clean: https://github.com/EmmanuelTsouris/media-browser-content
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Deployment is handled by angular-cli-ghpages.
Run ng deploy --base-href=/media-browser/
and the project will be deployed to https://.github.io/media-browser
When a commit occurs to the GitHub repo, a GitHub action deploys the changes to ghpages.
https://dev.to/jasonf/deploy-angular-to-github-pages-by-setting-up-a-workflow-in-github-171b
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.