finds.dev← search

// the find

coderwhy/HYMiniMall

★ 1,920 · JavaScript · MIT · updated Oct 2022

小程序商场项目

A WeChat Mini Program e-commerce demo built as a teaching project for a free course. It covers the standard shopping app screens — home, category, product detail, cart, and profile — and is explicitly meant for learning Mini Program development, not production use.

The component structure is clean and consistently applied: each custom component gets its own directory with .js/.json/.wxml/.wxss files, which is exactly the pattern you'd want students to internalize. The service layer is properly separated from pages, with network.js as a single HTTP abstraction rather than raw wx.request scattered everywhere. The cart and detail pages are decomposed into child components rather than dumped into one fat page, which demonstrates good Mini Program architecture. As a free course companion, the code is genuinely readable — it's written to be understood, not to be clever.

No state management — cart state appears to live in page data and gets passed around manually, which falls apart the moment you need to sync state across pages in a real app. The project hasn't been touched since 2022 and the WeChat Mini Program platform has moved considerably since then; some APIs may be deprecated. Images are hosted on Sina's image service (sinaimg.cn), which is already showing broken image URLs in the README — anyone cloning this today will see a lot of missing assets. There are no tests of any kind, which is fine for a tutorial but means there's nothing here to learn about testing Mini Programs.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →