Algorand-dApp-Quick-Start-Template - TypeScript Starter for NFTs, Payments, S...

Launch your Algorand dApp in minutes!

FREE
Last Updated 4 months
β€’Demo

Description

Project Stats

⭐ Stars🍴 ForksπŸ“ LicenseπŸ’» Language⛓️ Chains
54113Open SourceTypeScriptPolygon

Algorand-dApp-Quick-Start-Template-TypeScript

This is a full-stack starter template for quickly building and testing Web3 ideas on Algorand. It includes:

  • Wallet connection
  • Send ALGO or USDC payments
  • NFT minting (IPFS metadata via Pinata)
  • Asset (ASA) creation
  • Smart contract interaction demo

Use this template to kickstart your project, prototype ideas, and showcase a working proof-of-concept.

🌟 How To Get Started Instructions

Fork the Repo:

To create your own copy of this repository:

a. Go to the GitHub Repository:

  • Navigate to the main page which is the current one your on.

b. Click the "Fork" Button:

  • In the top-right corner of the page, click the Fork button. This will create a copy of the repository under your GitHub account. Feel free to hit the ⭐️ aswell so you can find the Algorand-dApp-Quick-Start-Template-Typescript repo easily!

c. Wait for the Forking Process to Complete:

  • GitHub will take a few moments to create the fork. Once complete, you’ll be redirected to your newly created fork.

https://github.com/user-attachments/assets/92e746e1-3143-4769-8a5a-1339e4bd7a14

πŸš€ Start with Codespaces

This is the fastest way to get up and running!

  1. Create a Codespace:

    • Click the green "Code" button at the top right of your forked repo.

    • Select "Create codespace on main".

    • Once your Codespace is fully loaded, you are ready to go.

    • Run the set up command below in your terminal it should only take a few mins.

      bash setup.sh
      
  2. While in Codespace:

    • After you successfully ran the setup in your terminal then enter your workspace. Like seen in the picture below!
  3. While in Workspace: ⚠️ Important Environment Setup

    1. Network Settings (Frontend) 🌐

    This setup is required to get the webpage running and connected to the correct Algorand network.

    Path: QuickStartTemplate/projects/QuickStartTemplate-frontend

    Steps:

    • Locate the file .env.template in the path above.
    • Create a new file named .env in the same folder as the path above.
    • Copy all contents from .env.template
    • Paste into your new .env file.

    2. NFT Minting (Pinata) πŸ–ΌοΈ

    This setup is required only if you plan to use the NFT Minting functionality.

    Path: QuickStartTemplate-contracts/nft_mint_server

    Steps:

    • Locate the file .env.template in the path above.
    • Copy all the contents of .env.template.
    • Create a new file named .env in the same folder.
    • Paste the copied content into your .env.
    • Follow the instructions inside .env.template to generate your Pinata API Key and Secret Key, and replace the placeholders in your new .env file.

Final Step: Run the project!

πŸ’‘ Note: You can stay in the root directory of the project when running the command. (This is usually the folder automatically opened when entering the Workspace, so you don’t need to move elsewhere.)

Once your .env files are ready (Expecially the Network one), run the command below to start the project:

 ```bash
 npm run dev
 ```

After running the command, open the localhost URL shown in your terminal.

Important: Set Visibility You’ll likely see a pop-up in the bottom-right corner. Click Set public to make the server accessible. OR manually go to the Ports section, right-click the 3001 port, and set its visibility to Public.

The Entire Process in a 2 min video:

Check out this demonstration video of the entire process above if you prefer a visual walkthrough. You can find it on Google Drive here: https://drive.google.com/file/d/183j8jtXsYzDEmVw-FxGTVvwAhPBh5SRy/view?usp=sharing

Pro Tip!

GitHub Codespaces is included with free accounts but comes with a monthly limit of 60 hours.

To avoid losing your progress, be sure to commit your changes regularly β€” just like shown in the video demo below β€” so your updates are saved to your forked repository.

https://github.com/user-attachments/assets/dd452ea1-3070-4718-af34-bea978e208ab

Project Structure Simplified

Front-end Files

  • projects/QuickStartTemplate-frontend/src/ β€” Frontend Webpage files
  • projects/QuickStartTemplate-frontend/src/Home.tsx - Homepage (you can design this page)
  • projects/QuickStartTemplate-frontend/src/App.tsx β€” Main app layout and routing
  • projects/QuickStartTemplate-frontend/src/components/Transact.tsx β€” Simple transfer ALGO & USDC, Opt-In and Atomic Transfer Logic
  • projects/QuickStartTemplate-frontend/src/components/NFTmint.tsx β€” Simple NFT minting interface
  • projects/QuickStartTemplate-frontend/src/components/Tokenmint.tsx β€” Simple token (ASA) minting interface
  • projects/QuickStartTemplate-frontend/src/components/AppCalls.tsx β€” Smart contract interaction demo

Back-end Files

  • projects/QuickStartTemplate-contracts/smart_contracts/hello_world/contract.algo.ts β€” Example TypeScript smart contract (Default AlgoKit Hello World)
  • projects/QuickStartTemplate-contracts/nft_mint_server/ β€” Backend server for NFT minting (contains .env.template and where you create your own .env)

Bonus Resources & Reference Guide

Need more help? See the Algorand-dApp-Quick-Start-Template Reference Guide for step-by-step instructions, AI prompts, and troubleshooting tips:

View the guide

Below are videos on:

  • How to connect to Testnet on Pera
  • How to use the Algo Dispenser
  • How to use the USDC Dispenser

How to connext to testnet on Pera Wallet

https://github.com/user-attachments/assets/31df8135-119e-4529-9539-4943de979719

How to use the Algo Dispenser

https://github.com/user-attachments/assets/643cae10-4673-4b68-8e95-4a3f16fbba60

How to use the USDC Dispenser

https://github.com/user-attachments/assets/a76e90fa-97f4-44f8-a7e8-a8ccabd24398


πŸ†“ Free Open Source Project

This is a free, open-source project from GitHub. Login to access the repository and start building!

View on GitHub

Disclaimer: Web3.Market is a marketplace platform that facilitates the sale of digital products between independent sellers and buyers. We do not develop, endorse, or guarantee any product listed on this platform. All products are provided by third-party sellers and are sold "as is." Web3.Market assumes no responsibility or liability for the functionality, security, legality, or any use or misuse of products purchased through this platform. Buyers are solely responsible for evaluating the suitability of any product for their intended purpose and for ensuring compliance with all applicable laws and regulations. By purchasing, you acknowledge that Web3.Market shall not be held liable for any direct, indirect, incidental, or consequential damages arising from the use of any product.

FREE

Open source β€’ Free forever

Source codeLifetime updatesCommercial license
Pay with:
BTC
ETH
USDT
SOL
BNB
+20

Product Info

CategoryNFTs & Games
Blockchainpolygon
Last Updated4 months

Repository Health

Overall Score
46/100

Score Breakdown

Activity
65%FAIR
Popularity
45%NEEDS WORK
Maintenance
25%NEEDS WORK
Community
45%NEEDS WORK
Documentation
60%FAIR

GitHub Stats

57
Stars
121
Forks
3
Contributors
0
Releases
LanguageTypeScript
Open Issues3

RPC Providers

Need a reliable RPC endpoint for your dApp? Get started with these trusted providers:

FREE
Open source

Your Code Belongs on Web3

Ship smarter dApps, plug into our marketplace, and grow with the next wave of the internet.