Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a FE Demo #24

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions demo/fe/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
7 changes: 7 additions & 0 deletions demo/fe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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`

Note that the current FE connects to localhost:8080
Loading