Bit

Bit

DevOps / Build, Test, Deploy / Code Collaboration & Version Control
Needs advice
on
BitBit
and
StorybookStorybook

Hi Team,

I need a UI component library where i should be able to integrate with the Angular framework and develop components and again i should be able to deploy them in an isolated environment which should not impact the app.

I am using Storybook, due to some glitch in storybook new version, We could not able to see the source code in the deployed version.

We mainly use storybook for demo purposes where we show the code as well. So please help, can I use Bit for my requirement?

READ MORE
4 upvotes·146.3K views
Replies (2)
Recommends
on
Bit
Storybook

Hi there, (full disclosure - i'm an employee of bit, but i'll try as much as possible to give the facts and not advise which tool to use or not use)

Storybook is great for demo-ing your components and rendering their UI - including toggling the various states and sharing the renders with colleagues.

Bit is a tool for creating, managing and distributing components, so does things like dependency resolution and management, shareable tooling, component versioning, hosting, discovery etc. As part of a component's page, there's also a compositions section which looks like storybook - hence the comparison developers often make.

The Composition feature is not as rich as Storybook (at least not yet), so if you need features like knobs, and accessibility testing, then you should keep Storybook for your component rendering. (Compositions do have other differences to storybook - each composition is its own mini-application, so you can essentially build integration tests to other components or applications, as well as set contexts across all compositions, and work on different tech-stacks in the same workspace. But these are probably less relevant to your question)

The two tools can also work very well together, so if you want all the UI features that storybook provides, as well as the component creation and management features of Bit, then the two can be used very nicely in conjunction with each other.

Hope that helps!

READ MORE
5 upvotes·248 views
CEO & Co-Founder at Dechea·
Recommends
on
Bit
at
()

We're using Bit by our own.

You can develop UI components in isolation for Angular, test it, document it and deploy it also as standalone app. (Check out Bit Aspects https://bit.dev/aspects)

e.g. a Button: https://bit.cloud/myliang/fish-ui/button You see there the code for different frameworks like Vue, React and Angular. And you see there is also a live preview. So you could also change the code for testing purposes directly in the browser, and see how it changes.

Furthermore, Bit is not stopping there. With Bit you can build your whole Application as components (Including Backend - currently only Node.js, but support is growing), that you compose to a standalone App (https://bit.dev/docs/apps/apps-overview/). They're currently working on something called RippleCI, that will take the headache of integrating and testing components between different teams. Given you have a component "Button", and this component will be used in another Component "Card". If you change something in "Button", Ripple CI will run your tests for "Button" and if the tests passing, it will send a PR to your repository to upgrade the dependency "Button" in your component "Card". (Comparable to Renovate, but smarter) With that, you can enable true component driven design with independent developer and teams.

If you go on bit.cloud you see on the top left a search field. With that, you can search all open source components existing on Bit. That way you can also check out, how it could look like for other components. The company Bit has also shared all their components as open source. So you can see, how they use Bit by their own: https://bit.cloud/teambit

READ MORE
3 upvotes·371 views
Needs advice
on
BitBit
and
GitHub EnterpriseGitHub Enterprise

Can I create reusable ARM templates (JSON files) in the Bit community? I see examples of components made from React codes. How can I make the same using JSON files?

READ MORE
2 upvotes·37.8K views
Engineering Manager at Andela·
Shared insights
on
BitBitReactReactMaterial-UIMaterial-UI
in

I picked up an idea to develop and it was no brainer I had to go with React for the frontend. I was faced with challenges when it came to what component framework to use. I had worked extensively with Material-UI but I needed something different that would offer me wider range of well customized components (I became pretty slow at styling). I brought in Evergreen after several sampling and reads online but again, after several prototype development against Evergreen—since I was using TypeScript and I had to import custom Type, it felt exhaustive. After I validated Evergreen with the designs of the idea I was developing, I also noticed I might have to do a lot of styling. I later stumbled on Material Kit, the one specifically made for React . It was promising with beautifully crafted components, most of which fits into the designs pages I had on ground.

A major problem of Material Kit for me is it isn't written in TypeScript and there isn't any plans to support its TypeScript version. I rolled up my sleeve and started converting their components to TypeScript and if you'll ask me, I am still on it.

In summary, I used the Create React App with TypeScript support and I am spending some time converting Material Kit to TypeScript before I start developing against it. All of these components are going to be hosted on Bit.

If you feel I am crazy or I have gotten something wrong, I'll be willing to listen to your opinion. Also, if you want to have a share of whatever TypeScript version of Material Kit I end up coming up with, let me know.

READ MORE
30 upvotes·3.6M views
Shared insights
at

I'm working as one of the engineering leads in RunaHR. As our platform is a Saas, we thought It'd be good to have an API (We chose Ruby and Rails for this) and a SPA (built with React and Redux ) connected. We started the SPA with Create React App since It's pretty easy to start.

We use Jest as the testing framework and react-testing-library to test React components. In Rails we make tests using RSpec.

Our main database is PostgreSQL, but we also use MongoDB to store some type of data. We started to use Redis  for cache and other time sensitive operations.

We have a couple of extra projects: One is an Employee app built with React Native and the other is an internal back office dashboard built with Next.js for the client and Python in the backend side.

Since we have different frontend apps we have found useful to have Bit to document visual components and utils in JavaScript.

READ MORE
22 upvotes·3.3M views