It’s quite easy to start developing a Wechat Mini Program following below tutotial.
- Developers.Wechat.Tutorial - The official tutorial
If you do it right, you have the development tool and an Mini Program account for now. Let’s search for an mini program project you prefered on Github, and pull it into your local folder.
Open that project using the development tools with your own account it will ask for.
Now we need to know how it works with debugging and the official tutotial.
As far as I known, some points you need to know firstly before you codes.
The app.json configuration is global to current Mini Program, which includes all of its page paths, permission you will added for userLocation or sth, and bottom tabBar you will provide a list of pages for it.
1 | app.json |
project.config.json is a config file for the whole project, it includes your appid(aka your mini program account), the project name and version. and so on.
Here are many useful APIs and components provided by WeChat.
For my part, the map is very powerful to show a location marker and lead user to navigate it, and the API wx.showToast, wx.request and wx.makePhoneCall are very common to use.
It also includes many sample codes for each API, so we may go to the next part.
As we known, a backend server is usually in need if we want to load the data dynamically from a database,and it’s complicated to setup a backend server from nothing. I was depressed until I found the WeChat Cloud Development!
Currently the cloud base provided three basic capabilities:
The console is also easy to use,
[Icons](https://www.flaticon.com/)
[Pictures](http://588ku.com/)
[Latitude and longitude for Map](http://api.map.baidu.com/lbsapi/getpoint/index.html)
[How to get Music URL](https://blog.csdn.net/qq_38347669/article/details/81541845)
I’d like to thank the wechat team for the powerful framework here. Many thanks~
If you’re interested with my first mini program, you may scan below QR code or search “Wedding Invitation Lynettez” in Wechat.
Don’t be surprised, it is indeed an wedding invitation. :)