Skip to content

zjanhoo/WebIDE-Backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding WebIDE Backend

本项目是开源版 WebIDE 的后端程序。

开发环境

本项目使用 Maven 作为构建系统, 开发 IDE 可以为 Intellj IDEA 或 Eclipse, 只需要在按照 maven 类型导入即可。

配置文件

  • /src/main/resources/application.properties 包括用户、项目、数据库等配置

SPACE_HOME: 存放 workspace 的目录,默认为 ${"user.home"}/.workspace
server.port: 应用启动的端口

包说明

config: 项目配置类
dto: dto 类
entity: 实体类
event: 与事件相关的类
git: 扩展 jgit 的类
model: 一些数据结构
repository: repository 类, 用于数据库查询
service: 服务类 tty: terminal 的 java 实现
utils: 工具类
web: 与 web 相关的类, 比如 controller 等

项目运行

本项目将 WebIDE 前端打包成 webjar, 作为 maven 依赖引入, 因此在运行本项目前需要先打包前端项目。

可以参见 WebIDE-Workspace 项目的脚本, 该脚本提供了一键编译、运行 WebIDE 的功能)。

如果想手动打包前端, 可以参见 WebIDE-Frontend-Webjars 项目。

打包完成后, 使用 mvn spring-boot:run 启动项目即可。

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%