Git Product home page Git Product logo

makeswift's Introduction

Visually build with Thirdweb components

In this example, you'll learn how to integrate thirdweb components from your Next.js app into Makeswift to make it visually editable.

Demo

https://makeswift-examples-thirdweb.vercel.app/

Deploy your own

Deploy your own with Vercel or preview live with StackBlitz

Deploy with Vercel

Tools

  • React SDK: to enable users to connect their wallets with the useMetamask hook, and access hooks such as useNFTDrop to interact with the NFT drop contract.
  • TypeScript SDK: to view the claimed supply, total supply, and mint NFTs from the drop.
  • Makeswift SDK: to register components into Makeswift's visual builder.

Using this repo

  1. Create a site on Makeswift

    Head over to Makeswift and sign up for a free account. Create a site using the option to "Integrate with Next.js".

  2. Clone this template

    Instead of using create-next-app, run this command from the terminal:

    npx thirdweb create --template makeswift
  3. Update environment variables

    Rename .env.local.example to .env.local and add your site API key from Makeswift.

    - MAKESWIFT_SITE_API_KEY=
    + MAKESWIFT_SITE_API_KEY=<YOUR_MAKESWIFT_SITE_API_KEY>
  4. Start the dev server

    Run this command from the terminal:

    yarn dev
    # or
    npm run dev

    Your host should be up and running on http://localhost:3000.

  5. Add the NFT Drop component into your Makeswift page

    Look for the ellipsis menu in the left toolbar and drop the NFT Drop component into Makeswift.

    With the NFT drop component selected, paste your NFT drop contract address from Thirdweb into the "Contract address" panel and select the correct chain.

    If you don't have an NFT drop contract, read this guide to learn how to create one using Thirdweb without any code.


Next steps

With Makeswift, you can give your marketing team hand-crafted Thirdweb building blocks to create custom Web3 websites.

To learn more about Makeswift, take a look at the following resources:

You can check out the Makeswift GitHub repository - your feedback and contributions are welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.