A very simple boilerplate to kickstart a React project. It uses Webpack to bundle the app to static assets as well as provide a simple development server with hot module replacement.
npm install
Note: If your not interested in publishing to a Github Page then remove git-directory-deploy
from the package.json
file.
npm run dev
If all goes well you should see this.
npm run build
Be sure you have installed git-directory-deploy
.
- Create a Github Page branch,
git branch gh-pages
. - Push the branch,
git push origin gh-pages
. - Deploy code to Github Page,
npm run ghpage
. - Go check it out at:
- User/Organization pages:
http://{username}.github.io
- Project pages:
http://{username}.github.io/{repo}
- User/Organization pages: