在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:transmute-industries/ride-share-demo开源软件地址:https://github.com/transmute-industries/ride-share-demo开源编程语言:JavaScript 92.5%开源软件介绍:Ride Share DemoA demo dapp with transmute, react, express, ipfs, postgres and testrpc. An Insomnia workspace is included to make testing the api easy. Be sure to disable Metamask before running this demo Getting Started With Docker
SummaryInside of ./dapp, sample data is generated and events are simulated via a command line tool (yarn reset). On http://localhost:3000, a react app reads from ethereum and ipfs to reconstruct the data generated by the command line tool, using the transmute framework. On http://localhost:3001/demo, an express postgres api reads from ethereum and ipfs to reconstruct the data generated by the command line tool, using the transmute framework. This demo shows how a What are Read Models?Read Models are event sourced objects which represent a smart contract's state, and are built from its history. By using Read Models, its easy to integrate smart contracts with existing databases and APIs. The Transmute Framework provides a javascript api for smart contract read models that is easy to extend and runs in the browser and node.js, see ./dapp/lib/common for some methods using the transmute framework. Possible Extensions
Without DockerInstall Global Node Dependencies
Start Dependencies in Terminal
Generate and Start Demo
IPFS is sometimes not fast enough with updates... if you see this:
restart the demo... we will add retries to resolve this in the future... sorry :( Built With
Future Work |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论