/webauthn-workspace

Primary LanguageTypeScriptMIT LicenseMIT

webauthn-workspace

Step 1. Prepare projects' packages

% git clone https://github.com/oneleo/webauthn-workspace.git
% cd webauthn-workspace/

% git checkout verify_passkey_contract
% pnpm install

Step 2. Setup Hardhat environment variables and start project

  • Setup environment variables
% PKG1="contracts"
% cp packages/${PKG1}/.env.example packages/${PKG1}/.env

% code packages/${PKG1}/.env
  • Start Hardhat node
% PKG1="contracts" && pnpm --filter ${PKG1} start:aa

Step 3. Setup React environment variables and start project

  • Open another Terminal
  • Setup environment variables
% PKG2="webauthn"
% cp packages/${PKG2}/.env.example packages/${PKG2}/.env
% code packages/${PKG2}/.env
  • Start React node
% PKG2="webauthn" && pnpm --filter ${PKG2} typechain
% PKG2="webauthn" && pnpm --filter ${PKG2} dev
% PKG3="decoder" && pnpm --filter ${PKG3} dev

Recourses