The project is a Backend application running Typescript + SQLite to run with the respective frontend project. It is managed using npm as the package manager. The goal of the project is to create a template that streamlines the process of kickstarting new projects. The template incorporates the latest version of React and integrates with Ethers, allowing for seamless interaction with the underlying blockchain. For testing purposes, a pre-deployed demo on the Sepolia Network is available for users to explore before starting their own development.
A Sunodo
template machine that runs a Typescript
node service along with viem
to convert values from/to Hex strings. We could have switched to Ethers
but the idea was to reduce the amount to code, and the Sunodo
template used already have support to viem
. The database runs SQLite
with WASM support due to the nature of the Risc-V Node has no native support to SQLite
bindings.
This project is part of a React SQLite
app template. If you want to run the frontend app together, follow intructions here.
Before run this app it would be required to run the backend service for it. To run a local backend service for this app it is required Cartesi CLI.
- Install Cartesi CLI
- Build project and after that run the Cartesi environment
cartesi build
cartesi run
This will run an anvil node as a local blockchain, the GraphQL service and Inspect Service.
For deploy your project on production use the following procedure for Self Hosting: Self Hosted Tutorial from Cartesi Docs
This project is meant to run on Cartesi Machine, the tool used to run and deploy the backend to public networks was Sunodo.
This project is based on the following repositories from Cartesi team: