GithubHelp home page GithubHelp logo

kangaroo's Introduction

概述

本示例演示如何使用使用蚂蚁小程序云应用作为后端服务器编写一个HelloWorld。

前置条件

  1. 拥有支付宝账号
  2. 申请开通小程序开发者权限。
  3. 创建小程序
  4. 开通云服务

使用步骤

  1. 创建云服务,选择NodeJS技术栈,并构建服务器环境。具体做法详见这篇文档
  2. 关联云服务:点击IDE顶部“关联应用”,选择您的小程序,然后点击旁边的“云服务”,关联刚刚构建好的NodeJS环境。

屏幕快照 2018-09-14 下午8.46.06.png | center | 799x65

  1. 打开client/pages/index/index.js,修改调用后端请求的域名。测试环境的域名可以从云服务应用的详情页获取:

b.png | center | 799x604

屏幕快照 2018-09-14 下午9.00.20.png | center | 799x274

  1. 上传部署server端代码:点击IDE顶部云服右边的工具图标,在下拉菜单中选择“上传部署服务端代码”。

屏幕快照 2018-09-14 下午8.47.15.png | center | 799x267

  1. 运行client端查看效果。

屏幕快照 2018-09-14 下午9.40.12.png | center | 379x671

资源

  1. 更详细的步骤,请参考这篇快速开始文档

kangaroo's People

Contributors

rocktyy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.