From abbfa71c891c55421b6eec3b53453d2502a3502e Mon Sep 17 00:00:00 2001
From: ckartik <k5chopra@uwaterloo.ca>
Date: Fri, 14 Oct 2022 17:45:44 -0400
Subject: [PATCH 1/3] Adds all details for new FE changes.

---
 demo/fe/src/App.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/demo/fe/src/App.js b/demo/fe/src/App.js
index ee651ed..f21127e 100644
--- a/demo/fe/src/App.js
+++ b/demo/fe/src/App.js
@@ -15,7 +15,7 @@ import JsonFormatter from 'react-json-formatter'
 import DropdownItem from 'react-bootstrap/esm/DropdownItem';
 
 
-const baseURL = 'https://ckartik.ngrok.io';
+const baseURL = 'http://localhost:8080';
 
 class DemoApp extends React.Component {
   constructor(props) {

From d5cce1d287134133a8faa87eeef5b1acfc7827a6 Mon Sep 17 00:00:00 2001
From: ckartik <k5chopra@uwaterloo.ca>
Date: Sat, 15 Oct 2022 17:42:08 -0400
Subject: [PATCH 2/3] Adds fe readme.

---
 demo/fe/README.md | 75 ++++-------------------------------------------
 1 file changed, 6 insertions(+), 69 deletions(-)

diff --git a/demo/fe/README.md b/demo/fe/README.md
index 58beeac..d0515ec 100644
--- a/demo/fe/README.md
+++ b/demo/fe/README.md
@@ -1,70 +1,7 @@
-# Getting Started with Create React App
+# Frontend Demo of Smart Contract
+- This is just the FE connects to a backend service connected to a locally or network deployed smart-contract.
+- To start, run the following commands:
+  - `npm install`
+  - `npm run start`
 
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
-
-## Available Scripts
-
-In the project directory, you can run:
-
-### `npm start`
-
-Runs the app in the development mode.\
-Open [http://localhost:3000](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.
-
-### `npm test`
-
-Launches the test runner in the interactive watch mode.\
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-
-### `npm run build`
-
-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](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-
-### `npm run eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can't go back!**
-
-If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
-
-You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
-
-### Code Splitting
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
-
-### Analyzing the Bundle Size
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
-
-### Making a Progressive Web App
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
-
-### Advanced Configuration
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
-
-### Deployment
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
-
-### `npm run build` fails to minify
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
+Note that the current FE connects to localhost:8080
\ No newline at end of file

From 27795fe487f1ed5e3a52204b63284c54f0639cde Mon Sep 17 00:00:00 2001
From: ckartik <k5chopra@uwaterloo.ca>
Date: Sat, 15 Oct 2022 17:44:11 -0400
Subject: [PATCH 3/3] Adds more readme details.

---
 README.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/README.md b/README.md
index 691bec0..0cd7aea 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,11 @@
 ## Deploying new contract:
  - run `$ npx hardhat deploy`
  - Copy the address value into the contract address field in the tests
+ - To run locally use: `npx hardhat deploy --network localhost`
+
+# Local deployment
+- Start a local node using `npx hardhat node`
+- Run the server in the hardhat envrionment using `npx hardhat run scripts/demo-backend/demo.js --network localhost`
 
 ## New Prespective
 1. Get rid of signature lists for out-signatures
