Project address github.com/richard1015…

Technology stack EggJS, MongoDB, Swagger, WebSocket, Amap

Demo Address:

  • At the front desk school. Zhuzhida. VIP

  • The API documentation address school. Zhuzhida. VIP/swagger – UI….

  • Background management schoolMgr.zhuzhida. VIP

  • Background management source > github.com/richard1015…

Functional specifications

  • 1. Target navigation
  • 2. Automatically play according to latitude and longitude
  • 3. Background API provision
  • 3.1 Verifying the File Upload Token
  • 3.2 Login Interface
  • 3.3 Obtaining token authentication for school interfaces (add, Delete, Modify, and Check
  • 3.4 Obtaining token Authentication for punctuation related interfaces (add, Delete, Modify, and Check
  • 3.5 Obtaining token Authentication for User-related Interfaces (Add, Delete, Modify, and Query
  • 4. Background WebSocket logs push token authentication in real time
  • 5. Swaager document plug-in integration

Screenshot function

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:7002/
Copy the code

Deploy

$ npm start
$ npm stop
Copy the code

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.

doc tree

├ ─ ─ the README. Md documents ├ ─ ─ app │ ├ ─ ─ contract document model class swagger │ │ └ ─ ─ model. The js │ ├ ─ ─ controller controller │ │ ├ ─ ─ base. Js base class Logic token check logic general return identifier │ │ ├ ─ ─ common. Js generic class │ │ ├ ─ ─ home. Js the default home page logic │ │ ├ ─ ─ school. Js learning-related logic │ │ ├ ─ ─ spot. Js punctuation associated logic │ │ └ ─ ─ User. Js user related logic │ ├ ─ ─ public static resource repository │ │ ├ ─ ─ CSS │ │ │ └ ─ ─ reset. CSS │ │ ├ ─ ─ images │ │ │ ├ ─ ─ offAuto. PNG │ │ │ ├ ─ ─ OnAuto. PNG │ │ │ ├ ─ ─ play1. GIF │ │ │ ├ ─ ─ play2. PNG │ │ │ └ ─ ─ play3. PNG │ │ ├ ─ ─ lib │ │ │ ├ ─ ─ jquery - 3.3.1. Js │ │ │ ├ ─ ─ Layer_mobile │ │ │ │ ├ ─ ─ layer. The js │ │ │ │ └ ─ ─ the need │ │ │ │ └ ─ ─ layer. The CSS │ │ │ └ ─ ─ rem. Js │ │ └ ─ ─ │ resources to upload files ├── Router. Js route │ ├─ Service │ ├─ MongoDB Base │ │ ├─ School. Js Data Processing logics │ │ ├─ School │ ├─ ├─ ├─ 02.txt ├─ 1.txt ├── ├─ config.default.js plugin ├── ├.jsconfig ├── ├─ ├─ ├─ ├─ ├─ ├─ ├─ ├─ ├─ common-error ├─ ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt ├─ download.txt Json │ ├─ Application_config_meta. Json │ ├─ Application_config_meta. Json │ ├─ Application_config ├── ├ _exercises - ├ _exercisestest│ └ ─ ─ app │ └ ─ ─ controller │ └ ─ ─ home. Test. The js └ ─ ─ typings ├ ─ ─ app │ ├ ─ ─ controller │ │ └ ─ ─ the index, which s │ ├ ─ ─ the index, which s │ └ ─ ─ service │ └ ─ ─ the index, which s └ ─ ─ the config ├ ─ ─ the index, which s └ ─ ─ the plugin, which sCopy the code