Giter Club home page Giter Club logo

dagangoilfield-experimentalhighschool-management's Introduction

大港油田实验中学新生审核管理系统

image

项目初始化

# djangoServer/djangoServer/settings.py

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.mysql",
        "NAME": "",  # 你的 MySQL 数据库名称
        "USER": "",  # 你的数据库用户名
        "PASSWORD": "",  # 你的数据库密码
        "HOST": "localhost",
        "PORT": "3306",
    }
}

后端运行

# 替换为你自己的 SSL 证书
python manage.py runsslserver --addrport 8080 --certificate .\crt\your-certification.pem --key .\crt\your-certification.key

Uni App 前端打包

推荐使用 HBuilder 发行

image

NPM 打包

npm run build:h5

前端部署

打包完毕将生成一个 h5 文件夹,将其放到合适的位置,如 Windows 系统 C:/www/xxx.com 或 Linux 系统 /www/xxx.com

Nginx 部署配置

server {
        listen       9000;
        server_name  xxx.com;  # 此处填写你的域名
        

        location / {
            root      C:/www/xxx.com;  # 此处填写 h5 文件夹路径
            index     index.html;
            try_files $uri $uri/ /index.html;
        }

    }
    
# HTTPS server
    
server {
    listen       9443 ssl;
    server_name  xxx.com;  # 此处填写你的域名

    ssl_certificate C:/src/nginx-1.24.0/certs/your-certification.pem;  # 此处填写你的证书路径
    ssl_certificate_key C:/src/nginx-1.24.0/certs/your-certification.key;  # 此处填写你的证书密钥路径

    location / {
        root      C:/www/xxx.com;  # 此处填写 h5 文件夹路径
        index     index.html;
        try_files $uri $uri/ /index.html;
    }
}

项目展示图

image

image

dagangoilfield-experimentalhighschool-management's People

Contributors

johnsonsii avatar

Stargazers

 avatar  avatar

Watchers

 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.