Git Product home page Git Product logo

sorting-list's Introduction

This is a simple website that handles sorting a list of Posts title.

It utilises the LexoRank, a lexical (alphanumerical) ranking system for sorting by drag and drop.

It also renders 500 post title items using react-window to reduce render loads.

demo.mp4

Table of contents

Explanation

Traditional numerical ranking system are limited by insufficient space allocations. The challenge in drag and drop is the probability of reaching these limits are high.

A lexical ranking system solves this issue by having an abundant of space allocations where in production should be accomodated with rebalancing to prevent performance drawbacks.

Development

  • Node v20 is required.
  • Docker and Makefile is also being used.

Initial Setup

Run the following when setting up the project for the first time:

make init
  • This will create a mongoDB container using docker make db-init.
  • Install server npm packages cd server && npm install.
  • Seed database with posts title in Posts collection. make db-seed.

Start server in development mode: make server

Install dependencies in client: cd client && npm run install

Start client in development mode:

  • This will also automatically generate the query typings for graphql make client-generate.

make client

Technologies

  • Node.js v20
  • MongoDB v6
  • Express v4
  • Mongoose v8
  • React v18
  • Vite v5
  • Graphql v18
  • LexoRank v1
  • Material UI v5
  • React-Window
  • @hello-pangea/dnd

sorting-list's People

Contributors

hjpunzalan 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.