Now goto your Github and create new repository with App name, in our case,
react-face-recognitionthen copy git URL to add in our project later. Next, openpackage.jsonand add"homepage"with your Github account and App name like this."homepage": "http://YOUR_GITHUB_ACCOUNT.github.io/react-face-recognition"Don’t close
package.jsonfile just yet, because we will addpredeployanddeploycommand lines under"scripts"like this."scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}Now you can save the file and go back to your console terminal, then run git commands to upload code to your Github repository and run
npm run deployto deploy to Github Pages. The page should be published with URL that you set ashttp://YOUR_GITHUB_ACCOUNT.github.io/react-face-recognitiongit add .
git commit -m "make something good"
// First Time
git remote add origin https://github.com/YOUR_GITHUB_ACCOUNT/react-face-recognition.git
// Update Timegit remote add upstream https://github.com/hotidentity/skin-analysis.git
git push -u origin master
npm run deployYou can check Github Page of this tutorial here, and also complete repo.
I hope you enjoy my tutorial and try making your react facial recognition of your own. If you find this tutorial is quite simple and want to see more complete version, please visit my demo page here, and also the repo.
0 Comments
Good day precious one, We love you more than anything.