Demo link - https://olegpixel.github.io/featureRequest/
Feature Request Management app using smart contracts and Near Blockchain. Could be used for collecting users feedback and sponsor new product features. A user can send his request for a new feature or vote for an existing item.
Tech stack:
- React
- Tailwind CSS
- near-api-js
Functionalities:
- Connect wallet
- Add a new requset
- Vote for an existing requset
- Check the list of recent transaction (votes)
How to run the app locally:
- you need Node.js ≥ 14 installed (https://nodejs.org)
- install the dependencies by running it locally:
cd app npm i npm start
Tech stack:
- AssemblyScript
- Near SDK (near-sdk-as)
Data storage:
- List of feature requests stored in a
PersistentUnorderedMapobject - List of transactions (votes) stored in a
PersistentVectorobject
Methods:
getItems- get a sorted list of feature requestsgetItem- get a particular item from the list by item idcreateItem- create a new feature requestupVote- vote for an existing feature with NEAR amountgetVotes- get last 10 transations (votes)
How to build and deploy the contract:
cd contract
yarn asb
near deploy --accountId=${CONTRACT_ACCOUNT_ID} --wasmFile=build/release/${APP_NAME}.wasm