git inint
git status
git add .
git commit -m "initial commit"
git branch -M 'main
git remote add origin "URL"
git push -u origin 'main'
npm install gh-pages --save-dev
In package.json add:
-
"homepage" : "https://username.github.io/app-name"
-
"predeploy":"npm run build"
-
"deploy":"gh-pages -d build"
npm run deploy