Skip to content

GameSwift/casper-sign-and-verify

Repository files navigation

Casper Wallet x GameSwift Sign & Verify demo

This repository contains a demo application that demonstrates how to use the Casper Wallet Sign & Verify message.

Getting Started

To get started with this template, follow the steps below:

  1. Clone the repository: Clone this repository to your local machine.
  2. Install dependencies: Install the necessary dependencies by running yarn install.
  3. Copy environment variables: Copy the .env.example file to .env (cp .env.example .env) and fill in the required environment variables.
  4. Run the development server: Start the development server by running yarn dev.
  5. Open the application: Open your web browser and navigate to http://localhost:3000 to see the application in action.
  6. Install Casper Wallet: Make sure to have installed Casper Wallet.

Scripts

This project includes the following npm scripts:

  • yarn dev: Starts the development server.
  • yarn build: Builds the application for production.
  • yarn start: Starts the application in production mode.
  • yarn type-check: Runs TypeScript to check for type errors.
  • yarn lint: Runs ESLint to catch issues.
  • yarn lint:fix: Runs ESLint to catch and fix issues.
  • yarn format: Runs Prettier to format all code.
  • yarn commit: Runs Commitizen for commit message prompts.
  • yarn reinstall: Deletes node_modules and yarn.lock, then reinstalls dependencies.