Want to see the finished project online? Here it is!
-
Clone in a directory
git clone https://github.com/tatemunnich/crossword
-
Install package dependencies
npm install
. If this isn't working, make sure you have Node installed on your computer. -
Run using
npm start
- Navigate to project directory and install GitHub Pages package as a dev-dependency
npm install gh-pages --save-dev
- Just above the name in
package.json
file, add the property"homepage": "http://{username}.github.io/{repo-name}"
- In the
scripts
property, above the"start"
property, add both"predeploy": "npm run build"
and"deploy": "gh-pages -d build"
- Make sure your project is in a GitHub repository, and then run
npm run deploy
to launch the page