
Hosting React/Redux Apps on GitHub Pages for Free
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