How to deploy a react applications in GitHub
In this tutorial, we will see how to deploy a react applications in github.
We can access our react application in homepage url.
Step 1: Develop your react applications
Step 2: Create a git hub repository
Step 3: In your project terminal, run command "npm install gh-pages --save-dev"
Step 4: Update package.json file
{
"homepage": "https://bharathanbtech.github.io/usecontext",
"name": "usecontext",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
Step 5: In the terminal run "npm run deploy"
I have learn this from here, Refer here for better understanding: https://www.youtube.com/watch?v=7wzuievFjrk
Comments
Post a Comment