QuoteOfTheDay
"Quote of the Day" returns a new Bruce Lee quote everyday or every time you refresh the page. :muscle:
Tech Specs:
- React
- Webpack
- NPM
- Axios
Steps for Deployment:
When app is ready to deploy run following:
npm run deploy
Deployment Info
Resource: https://facebook.github.io/create-react-app/docs/deployment#github-pages-https-pagesgithubcom
- In package.json add "homepage": "http://www.mudanic.com" field
- Install npm package gh-pages: > npm install --save gh-pages
- Add following code to package.json
"predeploy": "webpack --config webpack.config.js", "deploy": "gh-pages -d dist" - "predeploy": runs once
npm run deployis ran; purpose: builds/bundles code before publishing to gh-pages branch; gets a fresh bundle of code, based on webpack.config.js file. - "deploy": runs with the command
npm run deploy; will runnpm run predeploycommand; takes "output filename" (dist) folder that was just freshly bundled from the predeploy command, adds, commits, pushs new dist folder to gh-pages branch.

Log in or sign up for Devpost to join the conversation.