Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 1.4 KB

tech-docs.md

File metadata and controls

15 lines (10 loc) · 1.4 KB

Technical docs

This document contains a few details on the technical docs for this project.

  • Project was initially created using create-react-app and webpack configuration extended using cra-webpack-rewired to properly polyfill the packages required by waku-js.
  • Everything is written on typescript.
  • Styles are loaded locally from SCSS files (no special prefixing, so collisions must be avoided).
  • All logic and state management is handled using Kea 3.0. Kea logic must be typed which happens through the kea-typegen package that runs in the background when running yarn start. You'll notice files such as connectionLogicType.ts pop up (for further reference, check out the Kea docs).
  • Icons from Font Awesome Free under CC BY 4.0 License.

A note on routing

We use kea-router to easily handling routing. Normally URLs would look something like this https://debin.io/my-route, however IPFS doesn't properly support this routing (learn more), and we had to implement some hacky handlers to use the older hash routing instead.

You may wish to disable this hash routing if you're not running on IPFS. Look for :TRICKY: notes in the code.