# my-vue-editor-online **Repository Path**: SahalaProject/my-vue-editor-online ## Basic Information - **Project Name**: my-vue-editor-online - **Description**: 本地在线记事本,很方便啊! - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-03 - **Last Updated**: 2024-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # my-vue-editor-online > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report # run e2e tests npm run e2e # run all tests npm test ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). # 启动方式 - 开发模式 ```markdown 运行前端和后端 start_all.py ``` # 启动方式 - 生产模式 ```markdown 打包前端 npm run build # 注意改后端host 启动falsk:start_interface.py # flask后端一渲染dist中index.html, 注意修改 ``` # docker部署 ```markdown docker-compose up # 修改了文件内容后记得删除宝塔内docker镜像,在运行时会生成新的镜像 如果你想在后台执行该服务可以加上 -d 参数: docker-compose up -d ``` # Dockerfile ```docker FROM python:3.7-alpine WORKDIR /app VOLUME /www/wwwroot/docker_build/my-vue-editor-online /app ENV FLASK_APP start_interface.py ENV FLASK_RUN_HOST 0.0.0.0 COPY requirements.txt requirements.txt RUN pip install -r requirements.txt COPY . . CMD ["flask", "run"] ``` # docker-compose.yml ```yaml # yaml 配置 version: '3' services: web: build: . ports: - "8008:5000" # redis: # image: "redis:alpine" ``` # requirements.txt ```markdown flask flask-cors ```