In order to create a deployable version of JW OTT Webapp, follow these instructions in this document.
The following tools are needed to start building JW OTT Webapp. Follow the instructions on the links below:
- Clone the ott-web-app repository on your local machine.
$ cd ~/
$ git clone https://github.com/jwplayer/ott-web-app.git
$ cd ott-web-app
- Install the required dependencies. Optional dependencies include packages that are not necessary to build the project. These optional dependencies can be safely ignored.
$ yarn --ignore-optional
NOTE: Some of the easy deployments instructions require installing these optional dependencies. Use the
yarn
command to install all dependencies. Theyarn
command can be run even ifyarn --ignore-optional
has been previously run.
- Start the local development server.
$ yarn start
NOTE: Only use the development server for development purposes. The development server is not optimized for production usage.
- Build a deployable version of the JW OTT Webapp source code.
This command creates a new folder in the projects root folder named build. This folder can be uploaded to any hosting provider.
$ yarn build
If you have not made any changes to the JW OTT Webapp configuration or source code, changes can now be made. Be sure to run the yarn build
command after making any changes.