Full stack items | small bookcase | micro-channel small program - sub-project design

Previous article introduces the basic building block of the service and the design of the user side, the next step is the服务端和客户端realization of a specific business.

This article first to introduce the 微信小程序project design development, is subcontracting projects.

Since the project is in the "geeks time -9 hours to get small micro-channel application development" of development, based on the original subcontractor of the project are as follows:
Here Insert Picture Description
Based on this added some directory componends、miniprogram_npm、models, the last directory as follows:
Here Insert Picture Description

  • componends: Store custom components, such as custom pop, list itemlayout
  • config: Storage of configuration information, such as interfaces api, some constants
  • images: Storage resource picture
  • miniprogram_npm: Storage npmbag, using npmgenerated automatically after a packet
  • models: Storage entity class related operations, such as books book.js,user.js
  • pages: Storage applet page, such as Home mybehalf of an individual page
  • utils: Storage of tools, such as network requests, time conversion tool
  • package.json: Using npmthe generated profile after, may be disposed in the file npmafter the package be constructed using
  • sitemap.json: Used to configure the applet and the page is allowed to be micro-channel index, all pages will be indexed by default. Configuration applet -sitemap.json configuration

Advice please add micro letter: Light to tease.
Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/gdragon/p/11931467.html