Giter Club home page Giter Club logo

sample's Introduction

Sample

快应用官方示例项目

node version hap-toolkit version CircleCI

简介

2018年3月份,由小米,中兴,华为等10家厂商成立了快应用联盟,共同发布了快应用的标准。 自此我们可以采用一套标准去开发应用,无缝的运行在各个手机厂商上。一次开发,一次上传,自动分发到所有联盟厂商的设备

快应用官方是采用前端的技术栈来开发的,此项目为示例项目,帮助开发者快速入门快应用的开发

文档和社区

快速开始

安装hap-toolkit 编译工具

$ npm install -g hap-toolkit
$ hap -v

安装好hap-toolkit后,可以在控制台输入hap -v 看看当前的版本

安装手机调试器

调试器是一个Android应用程序,下载调试器APK

安装成功如图

项目运行

  1. 在项目根目录,安装依赖
    $ npm install
  2. 编译
    $ npm run build
  3. 调试
    <!-- 修改源代码后自动编译 -->
    $ npm run watch
  4. 启动http服务器
    $ npm run server

使用手机调试器调试

效果预览

sample's People

Contributors

cinderellahaha avatar wangcao avatar diydyq avatar gengjiawen avatar leeeeeem avatar xdxxdxxdxxdxxdx avatar xiedongxiang 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.