Skip to content

kukodein/react-github-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readme.md

React Github Page

Repo ini digunakan untuk template atau contoh project react yang akan di publish melalui Github Pages

Requirement

Install gh-pages library

npm install --save gh-pages

Clone Repo

Clone Project ini, dengan command berikut di Terminal

git clone https://github.com/kukodein/react-github-pages

Install

npm install

Running

Jalankan project ini dengan command berikut di Terminal

npm run start

Deploy ke Github Pages

Untuk melakukan deployment ke github pages anda perlu melakukan langkah-langkah berikut:

  1. Pastikan Requirement sudah dipenuhi

  2. Pastikan ubah file package.json

     "homepage": "https://myusername.github.io/my-app",
    
  3. Commit hasil perubahan ke repo baru

  4. Jalankan command berikut di terminal untuk memperbarui code di branch Github gh-pages

    npm run deploy
    

Deploy perubahan ke Github Pages

Jalankan command berikut di terminal untuk memperbarui code di branch Github gh-pages

npm run deploy

References: https://medium.com/@swarajgosavi20/how-to-deploy-react-on-github-pages-33e427f0bd36

About

Test Deploy React on Github Pages

Resources

Stars

Watchers

Forks

Contributors