
Install and manage npm packages in a WeChat mini program by enabling npm, installing qs, building npm to copy packages into the mini program npm folder, and testing the results.
Master WeChat mini program introduces async-await support by enabling a new dev tools feature that transforms any function into an async function, simplifying promises and callbacks for http requests.
Enable domain name verification during development to test a WeChat mini program on local IP or wifi, then disable it before production to ensure ICP compliance.
Wrap callback based WeChat mini program APIs into promises using new Promise with resolve and reject, enabling async/await syntax and handling status code 200.
Learn practical techniques to clone arrays and objects before mutation, including slice, spread syntax, set to remove duplicates, and object.assign or spread for merging and copying.
Learn how to implement login flow in a WeChat mini program, handle permission prompts, retrieve user information and nickname, and access the user's phone number to populate the profile page.
WeStore is a redux-like package that provides a single source of truth to manage data across components and pages, updating consistently when data changes.
Learn how to set up we store in your program, import the store, create and pass the store to pages to initialize and keep data in sync.
Learn to obtain user information in WeChat mini program using the get user info button, decrypt with session key and iv, then fetch open ID and union ID from backend.
Learn to add a language toggle to a multilingual WeChat mini program, sourcing language from the store, updating the profile, and reflecting changes across the UI.
Create a cart button component in the cart button directory, leveraging the existing item quantity component and a global store that updates each item's cart quantity.
learn how to use a computed property to reactively display the total cart quantity in a WeChat mini program by watching the global store's cart items and reducing their quantities.
Explore the WeChat mini program payment flow: backend creates orders, obtains prepay id, signs parameters, triggers frontend payment, and updates order status after callback.
Load cart items by implementing the show lifecycle to fetch products from the global cart store, map to IDs, and retrieve details from the backend for both entry points.
Learn to send a templar message to notify users that their shipment has shipped, triggered by pressing a button in a WeChat mini program.
While developing WeChat Mini Program, I found there was a lack of English resources online about it.
I hope this course will fill the gap for curious web developers to build a complete WeChat Mini Program.
We will use a basic structure of an e-commerce platform to learn about the crucial functionalities that makes a great Mini Program