Code Monkey home page Code Monkey logo

afinity-map's Introduction

Afinity Map

Deployment Link is -> Link.

High level architecture of the application

primiarly for the state management of the application i have used React Context hook with react useReducer Hook.In this application there are two important Context providers First one is Highlights and another is Buckets. All the actions regarding the read,update and delete is mentioned in the content folder under reducer file. To persist the changes of the application in reload i have used localstorage. To implement the Drag and Drop feature for grouping highlights in bucket i have used react-beautiful-dnd. Currently there are 2 major components they are Card and AddFilterNav. Due to the constraints of Time the project is not fully completed but if i get extra time then it would be completed soon. I havent used React beautiful dnd before and i was getting nasty runtime errors soo unfortunetely i had to remove it to make the app working.

Regarding Storage

Currently the State is stored in localStorage but i can get that from a REST API or Headless CMS but creating the API myself.

The Data Structure that i am using is :-

**Bucket : { id: string (using nanoid) bucketName: string highlights: [] }

Highlights : { id: string, userName: string, content: string, bucketid: string } **

I could have added more parameeters here like bucket could have a color property soo that user could set the color of the bucket

and in highlights i could have added timestamp and filter the bucker highlights according to date and time

To run this application in your local System you need to enter yarn to download all the dependencies and then yarn start to kickstart the Project

afinity-map's People

Contributors

0xpratik avatar

Stargazers

 avatar

Watchers

 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.