This calculator app is built with React Hooks. It uses the mathjs package to evaluate math expressions that the user enters.
cd calculator
npm install
npm start
cd calculator
yarn install
yarn start
- In
master
branch,
npm install --save gh-pages
-
In
package.json
:- Add this new key-value pair:
"homepage": "https://USER-NAME.github.io/REPO-NAME"
- Under the
"scripts"
key, add this new key-value pair:
"deploy": "npm run build && gh-pages -d build"
- Add this new key-value pair:
-
In
master
branch,
npm run deploy
This will create a new branch named gh-pages
on GitHub, which will contain the files required for hosting your site.
-
Follow these instructions to configure GitHub pages to publish the site source files from the
gh-pages
branch. -
As you keep developing, run
npm run deploy
in themaster
branch to keep updating the source files on thegh-pages
branch.
- In
master
branch,
yarn add gh-pages
-
In
package.json
:- Add this new key-value pair:
"homepage": "https://USER-NAME.github.io/REPO-NAME"
- Under the
"scripts"
key, add this new key-value pair:
"deploy": "yarn run build && gh-pages -d build"
- Add this new key-value pair:
-
In
master
branch,
yarn run deploy
This will create a new branch named gh-pages
on GitHub, which will contain the files required for hosting your site.
-
Follow these instructions to configure GitHub pages to publish the site source files from the
gh-pages
branch. -
As you keep developing, run
yarn run deploy
in themaster
branch to keep updating the source files on thegh-pages
branch.