Recommended in this issue is the campus war “epidemic” small program source code, including front-end + cloud development Serverless function.
Project Introduction
The goal of this project is to provide epidemic detection solutions for universities.
Core function:
- Return to school traffic registration: check whether there are patients on the way back to school, and facilitate the school to track the campus epidemic
- Student health and travel statistics: Quickly understand the distribution of epidemic diseases on campus
- Campus epidemic map: mark potential virus areas on campus to reduce personnel gathering
- Collection of epidemic prevention functions: online courses, health consultation, epidemic prevention tips, etc., can also safely survive the epidemic at school
Project Preview
For current colleges and universities, there are three characteristics of the following problems:
- Students come from all over the world: The situation is complicated
- Residential density
- Large turnover of personnel.
Therefore, if an epidemic occurs and control cannot be carried out at the first time, the consequences will be very severe. In this scenario, we want to solve this problem. After proposing the scenario, we found a positioning for the product, hoping to reduce the impact of the epidemic on study and life through epidemic investigation before and after students return to school. Then in this scene, the following two themes are involved: “Students and school authorities”
- Students: The need is to ensure their own life safety during the epidemic period, first of all, to ensure their own safety on the way back to school, and then to avoid the impact of the epidemic on their study in the following time as much as possible. After all, students mainly study.
- School: Demand is the control of the epidemic. Schools need to efficiently collect data on the outbreak, quickly locate patients and their contacts, quickly address the problem, and synchronize the situation with all students to prevent further spread of the problem.
Solution
Health report
Students can fill in their return to school itinerary information and daily health information after returning to school. According to the information reported by the students, our service will check whether the user has a dangerous trip in the background. If there is any danger, we will push the alarm to the campus and relevant students at the first time, so as to avoid the further spread of the problem.
Health statistics
This part mainly provides information for students on campus to learn about the epidemic situation on campus in real time. We believe transparency does not create panic, but avoids unnecessary problems.
Software Architecture
- Front-end: Taro + TypeScript
- Back-end: applet · Cloud development
- data collection: gold data real-time push
Installation & Preview
Install TypeScript dependencies in advance with version 3.7 or greater
$ npm i typescript -g
Front end:
$ cd client/
$ npm install
$ npm run dev:weapp
Back end:
$ cd cloud/functions/faas
$ npm install
$ tsc -w