Template which I use to build fast github pages using node.js + react + material-ui
- Clone this repository
git clone https://github.com/dunky11/github-pages-template/
- Install node.js
sudo apt install nodejs
- Install dependencies
cd github-pages-template
npm install
- Start local server
npm start
You can start editing files now, changes will automatically refresh your webpage. Inside config.js you can set basic configuration. Before you deploy your project to github-pages be sure to edit your package.json so "name" and "homepage" matches your projects.
- Compile your project
npm run build
- Push your compiled project to the gh-pages branch
npm run deploy