Skip to content
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ No problem. Go for it.
1. Install the [FireFly CLI here](https://github.com/hyperledger/firefly-cli?tab=readme-ov-file#install-the-cli)
2. Create a FireFly stack by running:
```bash
ff init devChallenge --block-period 2 # Please set this. We expect you to use 2 second block period for this project (as real world blockchains are not instantaneous)
ff init --block-period 2 dev_challenge 1 # Please set this. We expect you to use 2 second block period for this project (as real world blockchains are not instantaneous)
```
3. Start the FireFly stack by running:
```bash
ff start dev
ff start dev_challenge
```
4. When you're done, you will have FireFly and all its microservices, including your very own private blockchain, running on your machine.

Expand All @@ -88,7 +88,7 @@ If you run into issues, use the following resources to help:
This repo has three directories in it:

- `solidity`: Two example solidity contracts that can be compiled, tested, and deployed with Hardhat. [Go to the Readme](./solidity/)
- `backend`: A very simple TypeScript Node.js app that uses the FireFly SDK to interact with a custom smart contract. [Go to the Readme](./backen/)
- `backend`: A very simple TypeScript Node.js app that uses the FireFly SDK to interact with a custom smart contract. [Go to the Readme](./backend/)
- `frontend`: A TypeScript React UI bootstrapped with [vite](https://vitejs.dev/guide/) that calls the API in the backend. [Go to the Readme](./frontend/)

You will need to first deploy the example smart contracts with Hardhat to FireFly. Once the backend/frontend are started, the buttons on the Web UI will call the backend API endpoints to interact with the contracts through FireFly.
Expand Down
3 changes: 2 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
build
config.json
11 changes: 6 additions & 5 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ A very simple TypeScript Node.js app that uses the FireFly SDK to interact with

You are provided a basic [config.json](./config.json) file to help with setting up your app. The provided values will guide you to get the existing app up and running. Feel free to change this however you need for you application.

You will need the address from: `ff accounts list <StackName>`

You will need the output from when you installed your Hardhat contracts.

Understanding how that translates through FireFly into signing transactions on the blockchain will be useful to you.

## Run

```bash
npm install
npm start
```

## Who is making all these blockchain transactions?

This might help: `ff accounts list <StackName>`
With further [docs here](https://hyperledger.github.io/firefly/latest/reference/identities/)
9 changes: 9 additions & 0 deletions backend/config.sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"PORT": 4001,
"HOST": "http://localhost:5000",
"NAMESPACE": "default",
"SIGNING_KEY": "0xAAAA",
"VERSION": "1.0",
"SIMPLE_STORAGE_ADDRESS": "0xBBBB",
"TOKEN_ADDRESS": "0xCCCC"
}
Loading