Coder Social home page Coder Social logo

sylviaxu1123 / careforbaby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seamoon76/careforbaby

0.0 0.0 0.0 67.13 MB

A WeChat mini-program targeting at newborn/child infusion nursing record

License: MIT License

JavaScript 18.11% Python 13.38% TypeScript 68.44% Dockerfile 0.06%

careforbaby's Introduction

CareForBaby

Introduction

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.

Setup

deploy frontend

  1. Register a WeChat Mini Program account

  2. Fill in the applied Mini Program ID in the WeChat Developer Tools

  3. 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/'
    
  4. After the development is complete, click Upload in the WeChat developer tool to upload it as a trial version of the applet

  5. Released as an official version after the WeChat public platform application is approved

deploy backend

Linux server: Ubuntu 20.04

  1. Install Docker

    For the installation tutorial, please refer to: Docker-From Getting Started to Practice

  2. Download the backend code compression package to the server and decompress it

    It can be downloaded through git clone, etc.

  3. 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 )

  4. Modify nginx-volumes in the docker-compose.yml file

    Change /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 server

    nginx:
        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]
    
  5. Execute in the decompressed directory

    sudo docker-compose up

Usage and Demo

See doc/CareForBaby Product Document.pdf and demo/CareForBaby Demo.mp4

Author

  • Qi Ma (mq19 AT mails DOT tsinghua DOT edu DOT cn)
  • Leyi Pan
  • Ao Sun
  • Peiran Xu

License

MIT

careforbaby's People

Contributors

seamoon76 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.