Skip to content
/ cartesi-ts-sqlite Public template

The project is a Backend application running Typescript + SQLite to run with the respective frontend project.

License

Notifications You must be signed in to change notification settings

doiim/cartesi-ts-sqlite

Repository files navigation

Cartesi Typescript SQLite - Backend

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.

Live Demo

How this project is structured

Cartesi project structure

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.

Running Backend Locally using Cartesi CLI

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.

  1. Install Cartesi CLI
  2. 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.

Deploy to Production/Testnet using Sunodo

For deploy your project on production use the following procedure for Self Hosting: Self Hosted Tutorial from Cartesi Docs

Learn More

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:

About

The project is a Backend application running Typescript + SQLite to run with the respective frontend project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published