Coder Social home page Coder Social logo

full-stack-web-3-sample-code's Introduction

Glow Fullstack Take-Home

Overview

This is a take-home assignment for Glow's fullstack engineer position. The goal is to build a simple web application that allows users to mint an nft that also displays ownerships.

The frontend uses NextJS with Typescript. It can be found in the frontend directory. It's been already setup with a mint button and a table to display the ownerships.

The transfers should be indexed using the Subgraph. The subgraph can be found in the subgraph directory.

The backend should proxy to the subgraph and return the ownerships of a list of NFTs. The backend should be coded in the api directory.

You may choose any backend of your choice.

Requirements

  1. Hook up the mint button to mint an NFT in the frontend src/page.tsx

    • There is an ABI at your convenience in the frontend/src/abi/ directory
    • The contract address to mint is in the frontend/src/constants folder
    • The contract can be found here
    • It's an ERC721 deployed on Sepolia
  2. Create the subgraph to index the transfers of the NFT

    • Create the relative entities and relationships
    • The subgraph should index the Transfer event
    • The subgraph should have a way to query ownerships for bulk NFTs
    • This can be hosted on subgraph studio using npm run deploy
  3. Create a backend API in the api folder that proxies the subgraph for ownerships

    • The API should have a route that returns the ownerships of a list of NFTs [{id: string, owner: string}....]
    • You may choose any framework or language of your choice
  4. Hook up the frontend and backend

    • Grab the ownerships to display in the table
  5. Deploy the backend API any cloud provider of your choice

    • Hookup the frontend to the deployed backend

Libraries

The frontend uses Viem , WAGMI , and Rainbowkit . This is a default. You may choose to use it or not. This is just to speed up development. It's advised to use wagmi hooks to interact with the contract. It's also advised to use rainbowkit as the wallet connector.

Time Requirement

You have 4 hours to complete this assignment. If you are unable to complete it, please submit what you have. We will evaluate you based on what you have completed.

full-stack-web-3-sample-code's People

Contributors

0xsimbo avatar wu-s-john avatar

Stargazers

Thomas Rodriguez avatar

Watchers

 avatar

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.