Skip to content
/ ide-startup Public template
forked from opensumi/ide-startup

Quick starter for OpenSumi Web

License

Notifications You must be signed in to change notification settings

hhyl-Mirrors/ide-startup

 
 

Repository files navigation

OpenSumi Web 集成示例

Docker Image CI

本项目为基于 OpenSumi 框架的 Web 版 IDE 集成示例

项目结构

.
├── workspace                   # 工作目录
├── extensions                  # 插件目录
├── configs                     # webpack 配置
├── src
│   ├── browser
│   └── node
├── tsconfig.json
├── package.json
└── README.md

启动

$ git clone [email protected]:opensumi/ide-startup.git
$ cd ide-startup
$ yarn                       # 安装依赖后会自动执行 prepare,编译 Node.js 和 WebWorker 两个插件环境, 下载默认插件
$ mkdir workspace            # 创建默认的 workspace 目录,启动后会默认打开该目录
$ yarn download:extensions   # 安装默认内置插件
$ yarn start                 # 启动前端、后端服务器及 Webview Host

浏览器打开 https://0.0.0.0:8080

URL 添加 query 参数 workspaceDir 即可打开指定目录,例如 https://0.0.0.0:8080?workspaceDir=/path/to/dir

OpenSumi

使用 Docker 镜像

# 拉取镜像
docker pull ghcr.io/opensumi/opensumi-web:latest

# 运行
docker run --rm -d  -p 8080:8000/tcp ghcr.io/opensumi/opensumi-web:latest

浏览器打开 https://0.0.0.0:8080

About

Quick starter for OpenSumi Web

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 55.9%
  • TypeScript 38.6%
  • Dockerfile 2.6%
  • Less 2.1%
  • HTML 0.8%