Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Display Default Create React App as a GitHub Page

This project was bootstrapped with Create React App.

Link: testReactApp

What did I learn?

  • Add homepage property in package.json with appropriate link and add scripts to deploy

    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
    

    Don't forget to npm install gh-pages!

  • A production build of the app is needed to deploy it to GitHub Pages :shipit: (reads index.html, otherwise will only show the README.md)

    $ npm run deploy
    

    Make sure that there are the necessary scripts!

  • The built app code is contained in the gh-pages branch โ—

    Any other branch can be used for the working code!

  • Add node_modules to .gitignore !!! ๐Ÿ‘

    Avoid committing a huge folder full of code!

Next steps?

  • ๐ŸŒŸ Finish designing portfolio site layout
  • ๐Ÿ’ฆ Test in this testReactApp repository
  • ๐Ÿ’ช Implement design in new create-react-app and test locally
  • ๐Ÿ˜• Figure out where to host media files
  • ๐Ÿ”ง Build production build and upload to new repository for portfolio site

About

Future repository for portfolio site. Currently testing out using React to create a GitHub Page.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages