Skip to content

Commit 6fd90eb

Browse files
committed
更新README说明文档和截图
1 parent 2258f55 commit 6fd90eb

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed

README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Python-Web-IDE
2+
-----------
3+
> 一个简易的在线Python的IDE
4+
> 基于Vue3 + Python3.10 + Tornado6.1实现
5+
> 前后端分离
6+
7+
## 功能说明
8+
- 支持工程、文件、文件夹的增删查改
9+
- 支持Python代码基本补全
10+
- 支持Python代码(GUI不支持)运行管理和输出
11+
- 支持Markdown文件的编辑和预览
12+
13+
## 更新说明
14+
- 基于Vue3+Python3.10的全新实现
15+
- 引入markdown编辑器
16+
- 引入图标vscode-icons
17+
- 更改编辑器主题
18+
19+
## 编译和运行
20+
### 环境
21+
- Node: 16.13.2
22+
- Npm: 8.1.2
23+
- Python: 3.10
24+
- Tornado: 6.1
25+
26+
### 前端
27+
```bash
28+
# 安装依赖
29+
npm install 或者 yarn install
30+
31+
# 开发运行(默认端口是8080)
32+
npm run serve
33+
34+
# 打包编译(默认打包的路径在dist目录,后端程序已经配置从该目录加载资源)
35+
npm run build
36+
```
37+
38+
### 后端
39+
```bash
40+
# 假定已经安装好Python环境(建议使用虚拟Python环境并激活)
41+
42+
# 进入后端目录
43+
cd server
44+
45+
# 安装依赖
46+
pip install -r requirements.txt
47+
48+
# 运行(运行端口为10086)指定端口可以使用参数 --port=10010
49+
# 如果前端页面是独立运行的,不可指定后端端口(除非修改前端代码)
50+
python server.py
51+
52+
# 访问 (工程保存在projects/ide里面)
53+
# 开发运行前端的情况: localhost:8080
54+
# 打包好前端的情况: localhost:10086
55+
```
56+
57+
![image](docs/img/py_code.png)
58+
59+
![image](docs/img/md_code.png)
60+
61+
![image](docs/img/py_complete.png)
62+
63+
![image](docs/img/py_run.png)
64+
65+
![image](docs/img/projects.png)

docs/img/md_code.png

99.9 KB
Loading

docs/img/projects.png

70 KB
Loading

docs/img/py_code.png

60.3 KB
Loading

docs/img/py_complete.png

48.8 KB
Loading

docs/img/py_run.png

66.8 KB
Loading

0 commit comments

Comments
 (0)