Git Product home page Git Product logo

coding-challenge-backend-advanced's Introduction

Overview

Implement a basic Node.js backend system for an NFT airdrop application using Express.js in TypeScript. This system allows users to generate and redeem codes for NFT airdrops, with a focus on modularizing your code for various routes.

Objectives

  1. Implement Minimal In-Memory Store(s)

    • Develop a simple class to manage airdrop job details (unique redeem code, NFT contract address).
    • Functions:
      • Generate/store airdrop job details.
      • Retrieve airdrop job details by redeem code.
      • Mark an airdrop job as redeemed.
  2. Develop Basic API Endpoints

    • Endpoint to generate a redeem code for an NFT contract with a specified quantity.
    • Endpoint to redeem the NFT using the redeem code and a wallet address.
    • [Admin Only] Endpoints to list, retrieve, update, and delete airdrop jobs.
  3. Implement Basic Validation and Error Handling

    • Validate inputs for API endpoints.
    • Handle errors, such as invalid or already redeemed codes.
  4. Simple API Security

    • Implement a basic API Key authentication.
    • Role-based access control with two roles: admin and public. Admins have full access, while public users have limited access.
  5. Unit Testing with Jest

    • Write unit tests focusing on critical business logic.
  6. Bonus: Integrate a queue system for asynchronous airdrop processing and batch airdrop processing.

  7. Bonus: Implement airdrop function with smart contract interaction using Ethers.js.

Requirements

  • TypeScript and ES6+ code.
  • Emphasis on maintainability and understandable code structure.
  • Flexibility to modify the provided starter code.

Evaluation Criteria

  • Functionality: The application should meet the outlined objectives.
  • System Design: Look for practicality and simplicity in the overall system architecture, with particular attention to how the code is modularized for different routes.
  • Code Quality: Cleanliness, readability, and documentation.
  • Modularity and Scalability: Assess how well the solution uses modular design patterns to enhance code scalability and maintenance.
  • Testing: Coverage and quality of unit tests.

coding-challenge-backend-advanced's People

Contributors

alannkl avatar szelamc 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.