https://github.com/momi-foundation-coding/create-groups
Create groups based on items provided.
https://github.com/momi-foundation-coding/create-groups
Last synced: 4 months ago
JSON representation
Create groups based on items provided.
- Host: GitHub
- URL: https://github.com/momi-foundation-coding/create-groups
- Owner: momi-foundation-coding
- License: mit
- Created: 2022-09-16T03:37:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T12:44:09.000Z (over 3 years ago)
- Last Synced: 2025-04-09T20:48:21.345Z (over 1 year ago)
- Language: HTML
- Size: 353 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://app.netlify.com/sites/create-groups/deploys)
# Create Groups
This projects helps people create groups based on the items provided.
[click here](https://create-groups.netlify.app/) to see the website
# What Are some of the Task
1. Groups based on items
```javascript
// Example
const grouping = (items, noPerGroup) => {
// group the items[] by the number per group
}
```
2. Allow CSV Upload
```javascript
// 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
}
```
3. Allow Spreadsheet Upload
```javascript
// Make sure can upload spreadsheet
// Make use of upload function shown above
```
4. Save in computer/phone local storage
```javascript
// Save to local storage for sometime. (and display)
// localStorage.setItem(), etc methods
```
5. 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