Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rlebre/lightningjs-tictactoe
Tic Tac Toe game built using LightningJS and Javascript. Runs on SmartTVs
https://github.com/rlebre/lightningjs-tictactoe
javascript lightningjs
Last synced: 4 days ago
JSON representation
Tic Tac Toe game built using LightningJS and Javascript. Runs on SmartTVs
- Host: GitHub
- URL: https://github.com/rlebre/lightningjs-tictactoe
- Owner: rlebre
- Created: 2022-05-02T11:15:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-05T04:33:36.000Z (over 1 year ago)
- Last Synced: 2024-10-12T19:37:23.979Z (about 1 month ago)
- Topics: javascript, lightningjs
- Language: JavaScript
- Homepage: https://rlebre.github.io/lightningjs-tictactoe/
- Size: 1.28 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe
This app was created using LightningJS. You may play the Tic Tac Toe game ([Wikipedia](https://en.wikipedia.org/wiki/Tic-tac-toe)) in your browser using the arrow keys and return key. Additionally, you may also compile is to your SmartTV and play with the remote.
Special thanks to @rdkcentral for providing this tutorial - available at https://rdkcentral.github.io/Lightning/docs/gettingStarted/development-tictactoe.
### Getting started
> Before you follow the steps below, make sure you have the
[Lightning-CLI](https://rdkcentral.github.io/Lightning-CLI/) installed _globally_ only your system```
npm install -g @lightningjs/cli
```#### Running the App
1. Install the NPM dependencies by running `npm install`
2. Build the App using the _Lightning-CLI_ by running `lng build` inside the root of your project
3. Fire up a local webserver and open the App in a browser by running `lng serve` inside the root of your project
#### Developing the App
During development you can use the **watcher** functionality of the _Lightning-CLI_.
- use `lng watch` to automatically _rebuild_ your App whenever you make a change in the `src` or `static` folder
- use `lng dev` to start the watcher and run a local webserver / open the App in a browser _at the same time_#### Documentation
Use `lng docs` to open up the Lightning-SDK documentation.