Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/publiclab/community-toolbox
Tools to understand and welcome people into a contributor community
https://github.com/publiclab/community-toolbox
Last synced: 19 days ago
JSON representation
Tools to understand and welcome people into a contributor community
- Host: GitHub
- URL: https://github.com/publiclab/community-toolbox
- Owner: publiclab
- License: mit
- Created: 2017-10-17T18:58:47.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T15:02:16.000Z (11 months ago)
- Last Synced: 2024-10-30T00:37:01.625Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://code.publiclab.org
- Size: 65.2 MB
- Stars: 142
- Watchers: 11
- Forks: 199
- Open Issues: 90
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-starred - publiclab/community-toolbox - Tools to understand and welcome people into a contributor community (others)
README
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/publiclab/community-toolbox)
## Community Toolbox
A platform dedicated to community growth and getting insights on organization-wide activities.
[![Code of Conduct](https://img.shields.io/badge/code-of%20conduct-green.svg)](https://publiclab.org/conduct)
[![first-timers-only-friendly](http://img.shields.io/badge/first--timers--only-friendly-lightgray.svg?style=flat-square)](https://code.publiclab.org#r=all)
[![Join the chat at https://publiclab.org/chat](https://img.shields.io/badge/chat-in%20different%20ways-blue.svg)](https://publiclab.org/chat)
[![visit here](https://img.shields.io/badge/live_at-URL-yellow)](https://code.publiclab.org/)
[![GitHub license](https://img.shields.io/github/license/publiclab/community-toolbox)](https://github.com/publiclab/community-toolbox/blob/main/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/publiclab/community-toolbox)](https://github.com/publiclab/community-toolbox/stargazers)
[![Newcomers welcome](https://img.shields.io/badge/newcomers-welcome-pink.svg)](https://code.publiclab.org)## Table of Contents
1. [Project Overview](#project-overview)
2. [Getting Started](./docs/getting_started.md)
2. [How to Use](./docs/usage.md)## Project Overview
The project structure of community toolbox is majorly divided into two groups,
- `/examples` contains code responsible for front-end styles and related scripts,
- `/src` contains the actual code for fetching data and showing it to the user.![](./images/overview.png)
As shown in the flowchart, `/src` inherits MVC like architecture. Here,
Fragment | Contains
--- | ---
`/models` | database related operations (Database layer)
`/scripts` | main source file (community-toolbox.js)
`/utils` | utility functions (Controller layer)
`/UI` | user interface functions (View layer)---
### models
`models/` corresponds to the **Database Layer**. It is responsible for all the operations that happen on the database i.e., create, read and delete operations. The structure of `models/` ensures the segregation of code chunks based on their responsibilities.
There are 3 major categories to this:
- Setting up/initializing the database (initialize.js),
- Defining operations for the database (crud.js), and
- Providing a layer to communicate with the outside code (utils.js)![](./images/models.png)
### scripts
`scripts/` contains the main entry point **_community-toolbox.js_** which is responsible for plugging every single functionality to the website. This file provides an interface to communicate with every feature that is present or is to be added later on. This file then gets bundled up with the help of grunt and that bundled-up version of the file is injected into the website as a script with the help of the landing page html file (index.html).
### utils
`utils/` acts as a **Controller Layer**, it contains code for various different features, majority of the code for any feature is present in this folder. This is to follow our approach of keeping main logic separate from the interface file (community-toolbox.js). This helps in making the code more readable and maintainable.
![](./images/utilscripts.png)
### UI
`UI/` acts as a **View Layer**, it is responsible for displaying data on the landing page. Data is given to UI functions and its their job to display that data on to the screen. These functions are broken up into different units according to the data they display.
- Data for repository contributors is displayed on the screen with the help of **_contributorsUI.js_**,
- Similarly, **_recentContributorsUI.js_** shows recent contributors' data on to the page, and likewise other functions show data accordingly.![](./images/UI.png)
### Up next
- ### [Getting started guide](./docs/getting_started.md)