Skip to main content

Command Palette

Search for a command to run...

IBM Full Stack Developer Coursera (Part5)

Published
•1 min read•View as Markdown
IBM Full Stack Developer Coursera (Part5)

Deploying React,Javassript Website on Github.

WHAT I LEARNED:

  1. How to deploy your project on the github with the help of gh-pages

  2. Few new commands in linux and git commands .

  3. To instal gh-pages :

    npm install gh-pages --save-dev

  4. In Repo ‘learn_react‘ I changed directory to ‘package.json’ file and did the following changes :

    before ‘ “build”: “vite build“, ‘

  5. Changes in ‘vite.config.js‘ file

    before ‘ react[()] , ‘

  6. Now, “npm run deploy“ use this cmmd .

  7. Push this repository to github.

  8. After deploying go to : Github —> Repository —> Go to its setting —> Got to ‘pages‘ then :

    Click on ‘Save’

    After clicking on the link you can see your own website .

Problems That I encountered :

  1. It is asking for a domain , I don’t know much about it so I was not able to give it a domain name . I dont know but I guess it is not required to just preview website.