Coder Social home page Coder Social logo

dramloc / react-tizen Goto Github PK

View Code? Open in Web Editor NEW
37.0 2.0 11.0 3.72 MB

This project is based on Create React App and demonstrates a simple React project for Samsung Tizen TVs

HTML 18.28% CSS 9.88% JavaScript 71.84%
tizen tizen-tv react create-react-app

react-tizen's Introduction

React Tizen

This project is based on Create React App and demonstrates a simple React project for Samsung Tizen TVs.

There are a few steps to make this project work on a Tizen-compatible TV. First, we will see how to connect your TV to the development environment and allow applications to be installed on it. Then, we will see how to build this project and install it on the TV.

Configuring Tizen Studio and your device

  • Install Tizen Studio
  • In Tizen Studio, use the Package Manager (Tools › Package Manager or Alt + Shift + P) to install "Samsung Certificate Extension" and "TV Extensions" (you can find them in the "Extension SDK" tab)
  • Close the Package Manager and launch Tizen Studio (it might request you to set your workspace folder, you can choose any folder you want)
  • Connect your TV to Tizen Studio by following these instructions.
  • Generate a new Samsung certificate using the Certificate Manager (Tools › Certificate Manager or Alt + Shift + C).
    • Select "Samsung" certificate
    • Select "TV" device type
    • Select "Create a new certificate profile" and name it (we will need this name later)
    • Select "Create a new author certificate"
    • Input a name and a password
    • It will ask you to connect or create a Samsung Account.
    • If you want, select a backup path for the certificate and click next
    • Select "Create a new distributor certificate"
    • Make sure the connected TV DUID is in the DUID list and click next
    • Click finish and close the Certificate Manager
  • Go to the Device Manager (Tools › Device Manager or Alt + Shift + V), right-click the emulator and click "Permit to install applications". You should be prompted with "Suceeded to upload a certificate". You can then close the device manager.

Building and installing this project

  • Make sure that the tizen or tizen.bat CLI is available in your shell path
  • Create a config.xml in the tizen folder. This can be done by creating a new Tizen project in Tizen Studio.
    • Create a new Tizen Project
    • Select "Template"
    • Select "TV"
    • Select "Web Application"
    • Select "Empty" project
    • Choose a name and click finish
    • Once the project is generated, copy the config.xml file to the tizen folder of this project
  • Before building the project for the first time, edit the build and deploy scripts in the package.json file:
    • Replace tizen.bat with tizen if necessary (if you are running a unix system)
    • In the tizen.bat package -t wgt -s default -- build/.buildResult command, replace default with the name you gave to your certificate
    • In the tizen.bat install -n ReactTizen.wgt -- build/.buildResult command, replace ReactTizen.wgt with the name you gave to your application in the config.xml
  • Run the following command to build the project:
    yarn build
    This will perform the following actions:
    • Build the React project in the build folder
    • Copy the Tizen config.xml file from the tizen folder to the build folder
    • Build the build folder as a Tizen web app in the build/.buildResult folder
    • Package and sign the app as a *.wgt file
  • Run the following command to install the project on the connect TV:
    yarn deploy
    This will upload the *.wgt to the device and install it. You can then find the app in the "Apps" section of your TV to launch it.

react-tizen's People

Contributors

dramloc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-tizen's Issues

Props not working in Tizen?

Hi there, I was trying to add simple components to your app and it seems like the app stops loading after a component with props in it is present.

Do you know anything about that behaviour?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.