Garfield550 / qstn-dct2

Home Page:https://qstn-dct2.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QSTN Developer Code Test 2

GitHub Actions Vercel Deployment Version License

This is a Next.js 13 project using new App Route feature.

Features

  • New /app dir
  • Interaction with Aurora blockchain using ConnectKit and Wagmi
  • Interaction with Near blockchain using Near Wallet Selector and Near JavaScript API
  • Query Aurora Explorer data using Apollo GraphQL
  • Server and Client Components
  • API Routes and Middleware
  • Authentication using NextAuth.js
  • UI Components built using shadcn/ui and Radix UI
  • Styled using Tailwind CSS
  • Validations using Zod
  • Written in TypeScript

Backlogs

  • Reduce first load JS size for /dashboard page
  • Performance optimizations
  • Add more tests
  • Interaction with TestERC721 contract
  • Interaction with Near Guest Book contract

Known Issues

  1. Hardcoded username(johndoe) and password(abcd1234)
  2. Hardcoded user information
  3. GitHub authentication not working
  4. /sign-in, /privacy and /terms pages are not implemented

Running Locally

  1. Install dependencies using pnpm:

    pnpm install
  2. Copy example.env to .env.local and update the variables.

    cp example.env .env.local

    Note

    You can set NEXT_PUBLIC_NFT_CONTRACT_ADDRESS to 0x1875fcC416a92e04Ee23d2077203B02f3a51D0C0 and NEXT_PUBLIC_NEAR_CONTRACT_ID to guest-book.testnet

  3. Start the development server:

    pnpm dev

Running Tests

  1. Install dependencies using pnpm:

    pnpm install
  2. Copy example.env to .env.test.local and update the variables.

    cp example.env .env.test
  3. Run tests:

    pnpm test

Deploy on Vercel

Deploy with Vercel

The easiest way to deploy a Next.js app is to use the Vercel Platform.

Check out the Next.js deployment documentation for more details.

License

Licensed under the MIT license.

About

https://qstn-dct2.vercel.app

License:MIT License


Languages

Language:TypeScript 90.8%Language:JavaScript 5.7%Language:CSS 1.9%Language:Dockerfile 1.4%Language:Shell 0.2%