Gulu UI is a different kind of UI framework.
This UI framework is designed for "source code readers". If it's helpful to you, please don't hesitate to star it.
In other words, the purpose of creating this framework is to help frontend beginners learn how to build UI components. All the code aims for readability.
- You can learn the process of building this framework by examining each commit.
- You can also learn through the recorded videos I made (Sorry, the videos are paid due to the significant amount of time spent on producing them. However, the screencasts of the project setup process are free, and they can help you quickly get started with this project.)
If you want to start from the first commit, please click here.
If you have any questions about the code, feel free to raise an issue, and I will answer your questions. You can also join the group for consultation at the end of this article.
This UI framework is implemented based on Vue 2.
Note: The code of this UI framework is not yet fully completed (currently about 50% done), so please do not use it in a production environment.
- Engineering concepts such as unit testing, code coverage, and continuous integration.
- Technical concepts such as refactoring, TDD/BDD, design patterns, and one-way data flow.
- Almost all the features of Vue, and a deep understanding of these features rather than just a shallow understanding.
- Simple Components: Button, Input, Grid, Layout, Toast, Tabs, Popover, Accordion (code completed)
- Advanced Components: Cascader, Carousel, Responsive Navbar, Pagination, Form Validation, Table, Image Upload, Sticky, Tree, Suggestion, Datepicker (code not completed)
- Others: Router, State Management (code not completed)
Note: This is the current plan, and the specific components to be completed may differ from the above.
- Continuous integration using Travis CI.
- Rich unit tests with an expected test coverage of over 90% upon project completion.
- Self-explanatory code that can be understood even without comments.
- Initially built with Parcel for easy onboarding of beginners, later switched to Vue CLI 3 to achieve more functionalities.
A few years ago, I published an article called "Learn Frontend the Hard Way". At that time, I felt that although there were many good libraries in the open-source community, their source code was not suitable for beginners to read.
So I spent my spare time creating a few wheels with native JS and put them on GitHub. Unexpectedly, hundreds of people followed and hoped that I could release more detailed tutorials.
But at that time, I didn't have time to create more detailed tutorials.
Now finally... I'm still busy, but I've decided to record videos on "building wheels" every Saturday and Sunday.
This time, in order to follow the trend of frontend development, I directly used Vue 2 to build the wheels. If you are learning Vue 2, then the source code of Gulu UI will be very suitable for you to read.
This UI framework draws inspiration from some mature UI frameworks (such as Framework7, Element UI, and Ant Design) in terms of appearance. After simplification, I created my own visual design draft.
If you find any shortcomings in the visual design draft, you can leave a comment directly on it, and I will see it.
Because "Gulu" means "wheel" in Chinese.
-
Install dependencies
yarn install
-
Start dev server
yarn serve