# 软件工程作业 **Repository Path**: zsyaa/teamwork ## Basic Information - **Project Name**: 软件工程作业 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2023-11-15 - **Last Updated**: 2025-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 洗衣预约系统 ## 1. 组员 前端:赵思源、肖宇豪 后端:徐晓玉、骆光鲁 测试及文档书写:曹文彬 ​组长:赵思源 ## 2. git操作 ##### 1. 从主仓库fork代码到自己的个人仓库 ![init](./static/init1.png) ##### 2. git clone 自己仓库的代码到本地 ``` git clone [自己仓库的地址] ``` ​ 注意:git clone 自己的fork之后的地址 ##### 3. 如何提交 添加到暂缓区 ``` git add . ``` 【注】:尽量不要add . ,最好git add 自己改动过的文件 提交的本地仓库 ``` git commit -m [自己提交代码的功能名字] ``` 推到远程仓库 ``` git push [自己仓库的地址] ``` 提交pr ![init](./static/init2.png) ##### 4. 将线上的代码拉到本地(每次写代码之前要做) ``` git fetch https://gitee.com/zsyaa/teamwork ``` ``` git checkout master ``` ``` git merge fetch_head ``` ``` git checkout 自己的分支 ``` ``` git merge master ``` 此时可以看到本地代码有新增 # 3.初始化 ## 1.后端 ### 安装依赖文件 ``` pip install -r requirements.txt ``` ### 在settings.py中配置自己本地的数据库 ![init](./static/init4.png) ### 创建表 先执行 ``` python manage.py makemigrations ``` 然后执行 ``` python manage.py migrate ``` 创建超级管理员 ``` python manage.py createsuperuser ``` ### 运行 ``` python manage.py runserver ``` ## 2.前端 ### 安装依赖文件 ``` npm i ``` ### 运行 ``` npm run dev ```