- Ensure you have a code IDE like VSCode installed. VSCode is recommended, but feel free to use any IDE of your choice.
- Install npm on your machine.
- (If you are familar with Github)
forkthis repository, andclonethe forked repository to your local machine. Learn how to fork and clone. - (If you are not familar with Github) directly download the code from this repo
- Open the cloned project folder with VSCode.
- Launch the VSCode integrated terminal from menu:
Terminal > New TerminalorView > Terminal. - In the terminal, run
npm installto install necessary npm packages (first-time setup only).
Execute npm start in the terminal.
The project will open in your default web browser. Any code changes will automatically update the webpage. Google Chrome is recommended for the development.
Run npm run build
Run npm run deploy in your terminal
- In your web browser, go to the forked project in your github, and select the "Settings" tab.
- In the sidebar, under "Code and automation," choose "Pages."
- Set up "Build and deployment" as follows:
- Source:
Deploy from a branch - Branch:
gh-pages; Folder:/ (root)
- Source:
- Click "Save."
You can now share this demo via https://{your_github_userid}.github.io/tfjs-hand/