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.jsonfile, add the property"homepage": "http://{username}.github.io/{repo-name}" - In the
scriptsproperty, 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 deployto launch the page