Skip to content

Latest commit

 

History

History

frontend

Login with MetaMask (Frontend)

Tech stacks

  • create-next-app
  • TypeScript
  • web3-react (beta)
  • ethers.js
  • ESLint (eslint-config-google)
  • husky & lint-staged
  • tailwindcss & @headlessui/react & @tailwindcss/forms

References

Getting the project up and running

yarn install
# development
yarn dev
# production
yarn build
yarn start

TODOs

  • Follow https://nextjs.org/docs/basic-features/eslint.
  • Handle "TODO: could use tailwindcss".
  • Interact with the local storage using a well-designed mechanism. e.g. the one from react-use
  • Handle form validation. e.g. react-hook-form
  • Integrate storybook.
  • Integrate react-error-boundary.
  • Integrate react-query.
  • Properly handle errors from the backend.
  • Fix a bug that the authenticated status persists when switching accounts. A solution could be to log out the switched new account.
  • Resolve a security concern like updating the premium field at the database after paying in ETH. That API could be abused without security properly handled.

Notes

  • Responsive UI
  • For now, Only MetaMask is enabled, but other prominent wallets have already been configured and ready to be used after some touches.