当前位置:网站首页>How to get started with apiccloud app and multi terminal development of applet based on zero Foundation
How to get started with apiccloud app and multi terminal development of applet based on zero Foundation
2022-06-23 03:21:00 【Apiccloud official】
Business needs change fast 、 The high cost of developers is the main problem faced by enterprises now . Developing multiple technologies can solve these problems , Once developed, you can generate iOS、Android、 Applet 、Web Multi terminal application .APICloud With years of accumulation of mobile development technology , It provides developers with a set of high-performance multi terminal development technology , Can efficiently develop enterprise applications .
This paper is divided into establishing the basis of front-end programming and using APICloud Complete two parts of development , Let's briefly introduce the use of zero basic users APICloud The process of development . If you already have a front-end foundation but don't understand APICloud How to use , You can jump directly to the second part ~
One 、 Front end Foundation
Ten thousand Zhang tall buildings rise from the ground , Want to develop a APP First of all, you need to master the basic programming technology . As a multi terminal development platform ,APICloud Mainly through the front-end programming APP Development , Therefore, here is only a brief introduction to the front-end three swordsmen :HTML、CSS、JS Learning methods of .
1、HTML and CSS
HTML Responsible for the content of the web page , Equivalent to the skeleton of a web page , It's a hypertext markup language , It consists of various labels , It is the basis of front-end development . and CSS Responsible for the style of the web page , Through the color of web page elements 、 size 、 Position and other appearance styles , Make the web page more beautiful .
HTML and CSS Relatively simple , Learning is not difficult , Beginners can learn in w3cschool(www.w3cschool.cn/) And rookie tutorial (www.runoob.com/) Middle school learning , While learning, you can also carry out corresponding debugging exercises in the web page , Deepen the understanding of knowledge . In the initial grasp of HTML and CSS after , You can explore the implementation of existing web pages or UI The restoration and reproduction of the design draft .
2、JavaScript
JavaScript It is the top priority in front-end programming language learning , relative HTML and CSS Learning is more difficult .JS It is mainly responsible for the realization of interaction effects , That is to make the elements in the page move , Is the core skill of the front-end .
For the first time contact JS You can follow the online teaching video for the first simple learning , Have a general understanding of the concept , Get started . Then find the corresponding professional books to study , Form a systematic knowledge system , Further understanding JS Design principles and ideas of , Master more complex js technology , Such as prototype object 、 Closure 、 Synchronous asynchronous 、 Sandbox, etc .
Reference video :www.imooc.com/learn/36
Reference books :《Javascript Advanced programming The Fourth Edition 》《JavaScript The essence of language 》
3、 Common framework
After understanding the basic technology of the front end , You also need to master the basic framework of the front end . At present, there are two kinds of frameworks widely used in the front end :React and Vue.
React The frame is Facebook Launched a tool for building user interface JavaScript library . React Mainly for building UI, High performance , The code logic is very simple , It can realize large-scale projects quickly and conveniently .
Reference video :/www.bilibili.com/video/BV1wy4y1D7JT
Reference material :React Official documents : https://react.docschina.org/docs/getting-started.html
Vue The framework is used to build interactive web Library of interface . It provides MVVM Data binding and a composable component system , Simple 、 agile API.
Reference video :www.bilibili.com/video/BV1Zy4y1K7SH
Reference material :《Vue.js Authoritative guide 》,Vue Official documents : https://cn.vuejs.org/v2/guide/
The two have their own advantages ,Vue Easier to use , and React The relative degrees of freedom are higher , Developers can choose the framework to learn according to their own needs .
Two 、APICloud Development
After having a certain front-end Foundation , Users can use APICloud Developed . stay APICloud Basic used in HTML,CSS,JS Technology development is consistent with the steps of using a conventional compiler , Modify the code , Submission code , Compile code , Carry out corresponding debugging . The difference is APICloud Introduce your own API、 modular 、 Frame, etc , Therefore, there are certain differences in the specific operation of each step .
1、API And modules
First APICloud Provides its own encapsulated API Objects and modules , Developers can call directly , Quickly realize your needs .
API Object provides some basic methods for building applications , Such as window operation 、 Photo album and network data access ; And some common properties , Such as screen width , System type, etc ; There are also some common events , Such as low battery events 、 The application enters the background event .API Object does not need require quote , Can be directly in JS Use in .
Reference material :https://docs.APICloud.com/Client-API/api
And the module is in API An extension beyond the object ,APICloud Provides 1000+ ripe app Function module , Covered payments 、 IM、 live broadcast 、 distinguish 、 Map and other rich functions , Meet all kinds of app Development needs of . Developing app when , It can be called with one key without separate development , So as to greatly shorten the development cycle .
When you use modules in your code, you need to use them in the development console first Module page Add , Or by config.xml Medium feature Field add module , Reference resources feature To configure (https://docs.APICloud.com/Dev-Guide/app-config-manual#15). And pass api.require Method , Such as :
var fs = api.require('fs');
fs.exist({
path: 'fs://file.txt'
}, function(ret, err) {
});If you have any questions when calling the module, you can find them in the developer documentation (https://docs.APICloud.com/) Directly search for the corresponding module name in , Find the documentation of the module and view it .
If the platform module cannot meet the project requirements , Developers can also extend custom modules , After development, upload the module package to “ Custom module ” Inside , Then add and use .
Reference material
Module development guide _iOS:https://docs.APICloud.com/Module-Dev/module-dev-guide-for-ios
Module development guide _Android_Eclipse:https://docs.APICloud.com/Module-Dev/module-dev-guide-for-android
Module development guide _Android_Studio:https://docs.APICloud.com/Module-Dev/module-dev-guide-for-android-studio
2、 compile
At compile time , There are two ways to compile . If only the official module is called during development , Then you can directly use the official AppLoader Compile .
If you add your own encapsulated module during development , Payment module 、 The third party SDK Module etc. , Then the basic cloud compilation may not meet the requirements of compilation . In this case, developers need to customize AppLoader Complete the compilation of the application .
Reference material :https://docs.APICloud.com/Dev-Guide/Custom_Loader
3、 debugging
Finally, when debugging ,APICloud The method of debugging the real machine is provided . Just make sure that the phone and the compiler are in the same LAN segment , You can scan the code to download the generated software to the mobile phone , Realize synchronous debugging .
Reference material :https://docs.APICloud.com/Dev-Tools/studio3-wifi-debug
4、AVM frame
stay APICloud You can use the mainstream framework to complete the development of native applications , But if you want to realize the simultaneous development of multi terminal applications , Must use APICloud Medium avm.js Develop grammar and framework .
Avm It is a mobile first high-performance cross end JavaScript frame , Support writing multi end rendering at one time . It provides a concise code writing mode , Code once , Can be generated at the same time Android & iOS Native App、 Applets and WebApp.Avm Provide classes Vue Syntax and compatibility React JSX, If there is Vue and React Foundation of framework , You can get started quickly Avm.
Reference material :https://docs.APICloud.com/APICloud3/
5、 Data cloud platform
APICloud Application architecture is an integrated cloud architecture , Terminal implementation UI Layout and function , The cloud provides data and services .APICloud Provide a complete data storage solution from client to cloud , The cloud provides data management functions , The client provides data access API, Developers only need to create table structures and relationships in the cloud , The cloud will automatically generate Restful Interface , Then call... On the client side mcm modular API The method can , You don't need to build your own server and write any server code .
Reference material
The cloud service 3.0:https://docs.APICloud.com/Cloud-API/sentosa
Data cloud service development guide :https://docs.APICloud.com/Dev-Guide/data-cloud-dev-guide
6、 Project practice
As described above, in APICloud Knowledge that may be used in development , After mastering this knowledge, users have the foundation for developing applications . The official provides a novice tutorial , Users can implement an application from zero to one according to the tutorial .
Reference material
Create the first application :https://docs.APICloud.com/APICloud/creating-first-app
APICloud Introduction to novice concepts :
https://developer.yonyou.com/thread-194445-1-1.html
APP Practical development training with small programs :
https://developer.yonyou.com/thread-194510-1-1.html
besides , Users can also directly call the official template , Modify based on the template , Quickly customize your own APP. The official provides a detailed description of the template , You can quickly understand the code under the guidance of instructions , Realize project development .
Reference tutorial
Ordering template tutorial :https://docs.APICloud.com/APICloud/Order-template-description
If you encounter any problems in the development process that cannot be solved through documentation , Can be in the development community (https://developer.yonyou.com/forum-2-1.html) It is proposed that , There are others here APICloud developer , Also have APICloud Official technical support , Here you can get powerful help .
Go and develop your first application !
边栏推荐
- Chapter IV open source projects and deployment
- Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]
- Batch generation of Codabar codes using Excel files
- The logical operators |, & &!
- Goframe framework (RK boot): realize distributed log tracing
- CVE-2021-21973 Vmware Vcenter SSRF POC
- Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]
- JS remove first character of string
- Application of map function in JS
- How to store easydss version 3.0 video files in other free disks?
猜你喜欢

Analysis on the development of China's satellite navigation industry chain in 2021: satellite navigation is fully integrated into production and life, and the satellite navigation industry is also boo
![Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]](/img/ca/672bfe49c8123da8679b2abeb43a2e.jpg)
Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]
![[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]](/img/f1/972a760459a6d599b5681aa634df09.jpg)
[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]
![Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]](/img/4b/dd272f98b89a157180bf68570d2763.jpg)
Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]
![Analysis of China's integrated circuit industry chain in 2021: huge downstream market demand [figure]](/img/de/d73805aaf4345ca3d2a7baf85aab8d.jpg)
Analysis of China's integrated circuit industry chain in 2021: huge downstream market demand [figure]

Analysis on the development of duty-free industry in Hainan Province in 2021: the implementation of the new policy makes the duty-free market in Hainan more "prosperous" [figure]
![Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]](/img/81/4d3cb059f700dd9243645e64023be7.jpg)
Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]

Analysis on the development of China's graphene industry chain in 2021: with the support of energy conservation and environmental protection policies, the scale of graphene industry will continue to e
![Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]](/img/28/ebfc25ec288627706e15a07e6bdb77.jpg)
Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]

Encryption related to returnee of national market supervision public service platform
随机推荐
Reading redis source code (V) master-slave replication and sentinel mechanism
Use ES6 new Target to simulate abstract classes
[burning] Tencent cloud high tech computing platform HTPC cloud elastic cluster release!
Mybatties plus batch warehousing
CFs of cifs/smb protocol is mounted on win10/2019. Error 1272 is reported. The security policy prevents unauthenticated guest access
What are the advantages and difficulties of introducing AI into ISP Technology
Composition and simple classification of IP addresses
"Tianzhou II" successfully docked! Three minutes to understand the shocking black technology on "Tianzhou II"! Headlines
Quickly grab the red envelope cover of Tencent blue whale New Year! Slow hands!
Intelligent voice climbing patio
DDoS attack under Kali
The metauniverse is just a cloak for future technological evolution
6 values in JS are 'false'
How to batch generate ean14 barcode through TXT file
Cve-2021-4034 reappearance
Why not use math random() ?!
If there is a smart bus visualization platform, can "beginning" restart indefinitely?
Construction and exploration of vivo database and storage platform
How to gracefully solve the problem of platform font adaptation
JS counts the number of times a string appears in another string