Skip to content

momi-foundation-coding/create-groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlify Status

Create Groups

This projects helps people create groups based on the items provided. click here to see the website

What Are some of the Task

  1. Groups based on items
// Example

const grouping = (items, noPerGroup) => {
    // group the items[] by the number per group
}
  1. Allow CSV Upload
// Example

const upload = (file, columnName, noPerGroup) => {
    // columnName -> the colunm we are pulling the numbers from -> can advance this in the future
    // check the type of file, for now allow - Array, JSON, CSV and xls
    // convert JSON, then Array -> or direcly to array.
    // Call the grouping function to perform grouping.
    const items = file // data after pulling from file
    const results = grouping(items, noPerGroup)
    return results
}
  1. Allow Spreadsheet Upload
// Make sure can upload spreadsheet 
// Make use of upload function shown above
  1. Save in computer/phone local storage
// Save to local storage for sometime. (and display)
// localStorage.setItem(), etc methods
  1. Other ideas a. Allow multiple selection using other characters e.g gender balance groups b. Think of other metrics

Example

Take for instance, [student1, student2, student3, student4, student5, student6] and group them into groups of 2 students, example of result might be:

Group 1 - [student1, student3]
Group 2 - [student2, student6]
Group 3 - [student4, student5]

Contributors

About

Create groups based on items provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •