Git Product home page Git Product logo

community-toolbox's Introduction

Gitpod ready-to-code

Community Toolbox

A platform dedicated to community growth and getting insights on organization-wide activities.

Code of Conduct first-timers-only-friendly Join the chat at https://publiclab.org/chat visit here GitHub license GitHub stars Newcomers welcome

Table of Contents

  1. Project Overview
  2. Getting Started
  3. How to Use

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.

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)

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.

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.

Up next

community-toolbox's People

Contributors

adeola-dev avatar airdry avatar akanksha-v avatar angelfeliz avatar angelisamaria avatar archijaiswal avatar dakshgondaliya avatar debck avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar devanshcodes avatar elizabeth-agada avatar faithngetich avatar filiplipinski avatar gorzelinski avatar govindgoel avatar harshithpabbati avatar iworley0001 avatar jywarren avatar lakshyabatman avatar leanyanko avatar nawed2611 avatar nikramakrishnan avatar on2onyekachi avatar quoclien avatar rishabh570 avatar starkblaze01 avatar voidjuneau avatar yogeshsharma01 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.