CareForBaby
is a WeChat mini-program targeting at newborn/child infusion nursing record to digitize infusion nursing records and assist nurses in better infusion care.
-
Register a WeChat Mini Program account
-
Fill in the applied Mini Program ID in the WeChat Developer Tools
-
Set the backend domain name and port number in the
app.ts
file in the root directory// app.ts serverUrl:'https://se.maqi.site:8001/'
-
After the development is complete, click
Upload
in the WeChat developer tool to upload it as a trial version of the applet -
Released as an official version after the WeChat public platform application is approved
Linux server: Ubuntu 20.04
-
Install Docker
For the installation tutorial, please refer to: Docker-From Getting Started to Practice
-
Download the backend code compression package to the server and decompress it
It can be downloaded through git clone, etc.
-
Apply for a domain name and SSL certificate for the server, and save the certificate to the server (note that because WeChat requires the front-end to access the back-end cloud server through HTTPS and domain name, you must have a domain name and SSL certificate, unless you use the WeChat applet cloud service )
-
Modify
nginx
-volumes
in thedocker-compose.yml
fileChange
/home/ubuntu/[your ssl certificate file].crt
and/home/ubuntu/[your ssl certificate file].key
to the storage path of the SSL certificate applied for the domain name in your servernginx: restart: always image: nginx:latest ports: - "8001:8000" volumes: - static-volume:/code/static - ./config/nginx:/etc/nginx/conf.d #Modify the following two lines - /home/ubuntu/[your ssl certificate file].crt:[path to your crt file] - /home/ubuntu/[your ssl certificate file].key:[path to your key file]
-
Execute in the decompressed directory
sudo docker-compose up
See doc/CareForBaby Product Document.pdf
and demo/CareForBaby Demo.mp4
- Qi Ma (mq19 AT mails DOT tsinghua DOT edu DOT cn)
- Leyi Pan
- Ao Sun
- Peiran Xu
MIT