Welcome Onboard!

During the next two hours, we're going to learn the foundations of connecting a WeChat Mini Program with an Application Programming Interface (API).

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f6531c76-daf4-402d-b0dd-0a6ddf2f6679/Untitled.png


🛠 Action 1: Setting Up & Importing Your Project

  1. Open and bookmark the WeChat Official Accounts Platform. We will refer to its [Mini Programs Developers Docs] very often.
  2. Download and install the Integrated Development Environment (IDE) for WeChat: Select "Stable build" and choose Windows 64 or Mac. If you are using Linux, check this open source hack.
  3. Download the Zip Folder "[200225] Le Wagon COVID-19 Data Tracker" and add it to your Desktop.
  4. Open WeChat's IDE to setup your first project
  5. Choose "Mini Program" from the left menu
  6. Choose "Import Project" from the top tab bar
  7. In the "Directory" input, choose the folder titled "[200225] Le Wagon COVID-19 Data Tracker"
  8. In the "AppID" input, if nothing appears, choose "Test Account"
  9. Press the green "Import" button on the bottom right

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7396fcd7-66a2-4d41-809c-e7bd93a0c747/image.png


🗺 Action 2: Add Navigation to Your Project

  1. First, let's start by adding code to our navigateToData function.
  2. Second, let's add a bindtap to our wxml <button> element.