SIWA
  • Sign-In with Algorand
    • Quickstart Guide
      • Setting Up the Project
      • Component Overview
      • Client-side operations
      • Message Signing
      • Server-side operations
      • Testing and Troubleshooting
      • Sign-in Diagram
  • Integrations
    • NextAuth.js
    • Pera Wallet
    • Defly Wallet
    • Kibisis Wallet
    • Lute Wallet
  • General Information
    • SIWA Overview
      • EIP-4361-COMPAT
      • SIWA Diagram
      • Extended SIWA Diagram
    • SIWA Code of Conduct
  • Libraries
    • Typescript
  • Additional Support
    • Security Considerations
    • NFD Profile Resolution
    • Community Highlights
    • Attribution and Recognition
Powered by GitBook
On this page
  • Clone the Repo
  • Environment Setup
  • Project Structure
Edit on GitHub
  1. Sign-In with Algorand
  2. Quickstart Guide

Setting Up the Project

Clone/fork the SIWA Connect repo to get started

PreviousQuickstart GuideNextComponent Overview

Last updated 5 months ago

Clone the Repo

git clone https://github.com/headline-design/siwa-connect.git
cd siwa-connect

Install the necessary dependencies:

npm install
# or
yarn

Environment Setup

Create a .env.local file in the root of your project and add the following:

NEXT_PUBLIC_ALGOD_SERVER=https://testnet-api.algonode.cloud
NEXT_PUBLIC_ALGOD_PORT=443
NEXT_PUBLIC_ALGOD_TOKEN=

These environment variables are used to connect to the Algorand testnet. You can adjust these values if you're using a different network or your own node.

Project Structure

The project structure should look like this:

siwa-connect/
├── components/
│   ├── SIWAConnect.tsx
│   ├── Button.tsx
│   ├── Card.tsx
│   ├── Alert.tsx
│   └── ...
├── hooks/
│   ├── useSIWAAccount.ts
│   └── useWalletConnection.ts
├── pages/
│   ├── _app.tsx
│   └── index.tsx
├── utils/
│   └── siwaUtils.ts
├── .env.local
├── package.json
└── tsconfig.json

In the next section, we'll dive into implementing the SIWA Connect functionality.

LogoGitHub - headline-design/siwa-connectGitHub
Get started quickly with SIWA Connect