GithubHelp home page GithubHelp logo

frog-babel-street-ds-toolkit's Introduction

Babel Street Design System Toolkit (ds-toolkit)

Introduction

Welcome to the Babel Street Design System Toolkit (ds-toolkit) repository! This toolkit is a React component library developed to facilitate the creation of user interfaces for Babel Street's production applications. It uses the MUI component library under the hood.

In this guide, we'll walk you through the essential information to get started with ds-toolkit, whether you're a new developer or an experienced contributor.

You might find yourself perusing this README if you're either integrating the ds-toolkit into your application or considering contributing to the ds-toolkit project.

Table of Contents

  1. Installing ds-toolkit to your machine
  2. Integrating ds-toolkit into your app
  3. Storybook
  4. MUI
  5. Version Release Workflow
  6. Pseudo Release Workflow
  7. FAQs

Installing ds-toolkit to your machine

To configure the ds-toolkit repository on your local machine for either contributing or accessing Storybook, adhere to the following steps:

1. Clone the Repository: Navigate to your preferred projects directory and clone the repository using the following command:

git clone https://git.babelstreet.com/babelstreet/design-system.git

2. Install Dependencies: Move into the root directory of the cloned repository and install the necessary dependencies:

cd design-system
yarn install

3. Set Up Figma Credentials: Navigate to ./packages/design-token-service/ and create a file named .env.json. Copy and paste the following Figma credentials into this file. Click here to get the FIGMA_TOKEN from the Babel Stret BitWarden password and secrets manager.

// env.json
{
  "FIGMA_FILE_ID": "TZydv8oeNtlzA0TU8aFW4c",
  "FIGMA_TOKEN": "figd_Y-I***************"
}

3. Pull Design Tokens: Navigate to the root directory and run the following command. It will pull down the design tokens from our design system in Figma:

yarn tokens

4. Launch Storybook: launch Storybook locally to view our components and their related documentation.

yarn dev:storybook

Congratulations! You've completed the installation of the ds-toolkit repository.

Integrating ds-toolkit into your app

You do not need to install the ds-toolkit to your local machine in order to integrate ds-toolkit library into your application.

Follow these steps to add ds-toolkit to your app:

1. Ensure you have permissions to download from Nexus: In order to download the ds-toolkit you first need to be added to the npm-group permissions group on Nexus. Ensure you are added to this group before proceeding.

2. Create Nexus config file: Create a config file in order to allow you to download the ds-toolkit from Nexus.

If you are using NPM to manage your dependencies in your project: Create a .npmrc file at the root directory of your project. Add the following:

always-auth = true
save-exact = true
package-lock = true
engine-strict = true
registry = https://nexus.babelstreet.com/repository/npm-group/
metrics-registry = https://nexus.babelstreet.com/repository/npm-group/
sentrycli_cdnurl = https://nexus.babelstreet.com/repository/sentry-cli/

And then run npm install. You should see the console/terminal complete the ds-toolkit download and install successfully.

If you are using yarn to manage your dependencies in your project: Create a .yarnrc file at the root directory of your project. Add the following lines:

always-auth true
save-exact true
package-lock true
engine-strict true
registry https://nexus.babelstreet.com/repository/npm-group/
sentrycli_cdnurl https://nexus.babelstreet.com/repository/sentry-cli/

And then run yarn. You should see the console/terminal complete the ds-toolkit download and install successfully.

3. Using ds-toolkit components

You may now begin using the React components provided from the ds-toolkit. These components will largely be wrappers of MUI components. You will occasionally see components not found in MUI. In order to see what components are available to use, and to try them out, you can run Storybook locally or view our Storybook hosted on Chromatic here.

If you would rather run Storybook locally on your machine see the Installing ds-toolkit to your machine section above.

Storybook

Here is a rundown on what Storybook is and how we use it.

MUI (Material User Interface)

Here is a detailed rundown on what MUI is and why we use it.

Version release workflow

Here is a detailed rundown of how to release a new version of ds-toolkit.

Pseudo release workflow

Here is a rundown on how to make a pseudo release for ds-toolkit for development/testing with your application.

frog-babel-street-ds-toolkit's People

Contributors

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