Project Deploy Link
make sure you have npm, node and create-react-app tool
create-react-app project-name
OR
git clone https://github.com/rks107/favorite-movies/
npm start
src
├── Action
│ └── index.js
├── components
│ ├── App.js
│ ├── MovieCart.js
│ └── Navbar.js
├── Reducer
│ └── index.js
├── index.css
└── index.js
Open package.json and add
Steps:
1. npm run build
2. Install the gh-pages package as a “dev-dependency” of the app (npm i gh-pages)
3. "homepage": "http://{Github-username}.github.io/{Github-repo-name}"
4. "scripts": {
//…
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
5. npm run deploy