Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.97 KB

File metadata and controls

43 lines (32 loc) · 1.97 KB

ts-turborepo-boilerplate: sample-app

Note: use this app as reference but preferred way is to re-write app from zero instead of refactoring this one. When you don't need this anymore, you can delete it

Sample app that uses sample-lib Blockchain provider to fetch Vitalik and Zero address native balance and sums them

Setup

  1. Change package name to your own in package.json
  2. Install dependencies running pnpm install

⚙️ Setting up env variables

  • Create .env file and copy paste .env.example content in there.
$ cp .env.example .env

Available options:

Name Description Default Required Notes
RPC_URL RPC URL to use for querying balances N/A Yes

Available Scripts

Available scripts that can be run using pnpm:

Script Description
build Build library using tsc
check-types Check types issues using tsc
clean Remove dist folder
lint Run ESLint to check for coding standards
lint:fix Run linter and automatically fix code formatting issues
format Check code formatting and style using Prettier
format:fix Run formatter and automatically fix issues
start Run the app
test Run tests using vitest
test:cov Run tests with coverage report