This project was bootstrapped with Create React App.
npx create-react-app ReactApp-ExpenseTrackercd ReactApp-ExpenseTrackernpm start
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Considering app has been created and has been pushed to a repository, follow these steps:
1. Install the gh-pages npm package and designate it as a development dependency:
```shell
$ npm install gh-pages --save-dev
```
2. Add a homepage property to the package.json file
-
Open the
package.jsonfile in a text editor. -
Add a
homepageproperty in this format*:https://{username}.github.io/{repo-name}{ "name": "my-app", "version": "0.1.0", "homepage": "https://heismanish.github.io/ReactApp-ExpenseTracker", "private": true,At this point, the React app's
package.jsonfile includes a property namedhomepage.
- Add a `predeploy` property and a `deploy` property to the `scripts` object:
```diff
"scripts": {
+ "predeploy": "npm run build",
+ "deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
```
At this point, the React app's `package.json` file includes deployment scripts.
- Deploy the app from Branch :`gh-pages`