# backend **Repository Path**: open-firmware/backend ## Basic Information - **Project Name**: backend - **Description**: OpenFirmware门户网站后端源码 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-12-20 - **Last Updated**: 2024-10-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # backend #### 介绍 这是后端仓库 #### 软件架构 软件架构说明 `django + DRF + django-admin + mysql + docker` #### 安装教程 1. 下载项目 2. 执行`Dockerfile`文件创建镜像`docker build -t “容器名” .` 3. 执行`docker-compose.yaml`启动容器,`docker-compose -f docker-compose.yaml up -d` 4. 执行 `docker exec -it “容器名” python3 manage.py createsuperuser`, 创建超级管理员。 5. 配置`nginx`,直接下载`nginx`后将配置文件`front.conf`复制到nginx的`conf.d`目录下即可,重启`nginx` #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 作者 张二风