Skip to content

zkemail/sdk-ts-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdk-ts-demo

Demo of using the typescript zk-email sdk

Prerequisites

Node.js Requirements

This project requires Node.js version 20 or above. We recommend using nvm (Node Version Manager) to manage your Node.js versions.

Installing nvm and Node.js

  1. Install nvm:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
  2. Restart your terminal and verify nvm installation:

    nvm --version
  3. Install and use Node.js v20:

    nvm install 20
    nvm use 20

Project Demos

Node.js Demo

This demo requires bun to run:

# Navigate to the Node.js demo directory
cd node_js

# Install dependencies
bun i

# Run the demo
bun src/shortest-example.ts

Deno Demo

Make sure you have Deno installed.

# Navigate to the Deno demo directory
cd deno

# Run the development server
deno task dev

NextJS Demo

# Navigate to the NextJS demo directory
cd nextjs

# Install dependencies
pnpm i

# Start the development server
pnpm run dev

Vite Vanilla JS Demo

# Navigate to the Vite demo directory
cd vite

# Install dependencies
pnpm i

# Start the development server
pnpm run dev

Additional Notes

  • Each demo is contained in its own directory with its specific dependencies

  • Make sure to install the required package managers before running the respective demos:

    Install bun:

    curl -fsSL https://bun.sh/install | bash

    Install pnpm:

    npm install -g pnpm
  • For the best development experience, ensure you're using the latest stable versions of all tools

About

Demo of using the typescript zk-email sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •