LucasGobbs / heatmap-challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heatmap Explorer

An aplication that creates an heatmap based on an jsonfile and a image

Link to App Hosted

About

Application Running Application Running

Flow

Initial Screen Initial Screen of APP

Choose Json and Image File Choosing json and image files

Select filter options and Download Selecting the filter options

Generated Output Generated Output

Tech Stack

  • SvelteJs
  • TailwindJs
  • Vite
  • Heatmap.js
  • Typescript

Instalation and Execution

You need Node and NPM to run the project

First clone the project and install the dependencies

git clone ...
npm install

After that you can run with:

npm run dev

Then open the project in: http://localhost:5173/heatmap/

Code

All the code is divided in the following architecture

  • /src/lib
    • /components - The Componenets that are used in the projects (and their stores)
      • /components/ui - Components pushed from external repositories (shadcn)
    • /intefaces - Interfaces and types
    • /pages - The pages of the app
    • /utils - TS code that is used in the components but are'nt in the frontend context

The parsing of the json file is inside the ExtractDataFromElastic.ts in which implements the interface IDataPointExtractor.ts

/src/lib/utils/ExtractDataFromElastic.ts

/src/lib/interfaces/IDataPointExtractor.ts

About


Languages

Language:Svelte 59.6%Language:TypeScript 24.8%Language:JavaScript 9.6%Language:CSS 4.4%Language:HTML 1.6%