Hosting React/Redux Apps on GitHub Pages for Free

Hosting React/Redux Apps on GitHub Pages for Free

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=2z-_JxrLq0Q



Duration: 4:54
1,356 views
29


How to host your react redux app for free on GitHub pages.
This code is also written in typescript.
Commands in this video,
$ npm install gh-pages --save-dev
I added
"deploy": "gh-pages -d dist"
to my package.json scripts element
I added
basename="/Seans-TypeScript-ReactJS-Redux-Boilerplate/"
to my router in app.tsx
rebuilt the distribution
$ npm run build
deployed to GitHub pages
$ npm run deploy


site can now be visited at
https://sean-bradley.github.io/Seans-TypeScript-ReactJS-Redux-Boilerplate/

my GitHub project featured in this video is at
https://github.com/Sean-Bradley/Seans-TypeScript-ReactJS-Redux-Boilerplate

If you got this far, you probably like TypeScript just like I do,
I have created a course to teach TypeScript together with Socket.IO so please check it out.
https://youtu.be/3uLSNctzkkw

You can do this too,
Thanks for watching, remember to like, comment, subscribe and share







Tags:
react
redux
github pages
ghpages
reactjs
free hosting
webpack
npm
gh-pages
typescript