Developing and hosting your own Angular, React applications has never been easier, but now there are many options like Google Firebase, Heroku and etc. Github Pages is offering some great features with free of cost no credit card required and no bandwidth limitations. Just create a public repository and commit all of your product ready files. It has a custom domain support with HTTPs enforcement.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 1 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/github.png?w=1200&ssl=1)
Video Tutorial
Create Repository
Create a GitHub repository with your project name.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 2 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/create-repository.png?w=1200&ssl=1)
Master Branch
Master branch with readme file.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 3 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/master-branch.png?w=1200&ssl=1)
Create File
Create a new file directly.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 4 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/create-file.png?w=1200&ssl=1)
index.html
Create a simple HTML to display a title.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 5 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/create-index.png?w=1200&ssl=1)
style.css
Styling for H1 tag.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 6 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/create-sytle.png?w=1200&ssl=1)
Master branch
Updated master branch
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 7 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/updated-master.png?w=1200&ssl=1)
Setting Github Pages
Go to branch settings and scroll bottom, you will find the Github pages.
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 8 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/github-pages.png?w=1200&ssl=1)
Domain CNAME Record – WWW
You can map your main domain with CNAME @
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 9 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/domain.png?w=1200&ssl=1)
Sub Domain CNAME Record
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 10 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/subdomain.png?w=1200&ssl=1)
Clone Github Project
Copy Repository URL
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 11 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/clone.png?w=1200&ssl=1)
Clone Github hosting repository.
Build Project
$git clone https://github.com/username/hosting
$cd hosting
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 12 Github Free Website Hosting](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/terminal-clone.png?w=1200&ssl=1)
Create an Angular Project
Generate an Angular project using ng command.
$ng new hosting-angular
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 13 Angular create project](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/angular-command.png?w=1200&ssl=1)
Build Angular Project
$cd hosting-angular
$ng build –prod
Host Angular Project
Copy past all of the dist directory files into hosting directory. Then execute the following command.
$cd hosting
$git add .
$git commit -m “Angular project”
$git push
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 14 Angular build command](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/angular-build.png?w=1200&ssl=1)
Create a React Project
Generate a React project using create-react-app command.
$npx create-react-app hosting-react
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 15 React create project](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/react-command.png?w=1200&ssl=1)
Build Project
$cd hosting-react
$npm run build –prod
![[Guide] Github Free Angular React Application Hosting - Google Drive Links 16 React build command](https://i0.wp.com/github.com/srinivastamada/9lessonsImages/blob/master/github/react-build.png?w=1200&ssl=1)
Host React Project
Copy past all of the build directory files into hosting directory. Then execute the following command.
$cd hosting
$git add .
$git commit -m “React project”
$git push