Go to file
mattn eaddb049c7 Separate CSSs to handle font-family for buttons 2014-10-28 09:55:00 +09:00
conf #97 2014-10-27 23:03:09 +08:00
data . 2014-10-27 23:06:46 +08:00
doc Update README.md 2014-09-18 16:19:38 +08:00
editor Fix #96 2014-10-26 18:08:01 +08:00
event 代码注释 2014-10-10 11:17:51 +08:00
file . 2014-10-26 15:59:12 +08:00
i18n Add japanese locale 2014-10-28 09:48:07 +09:00
notification i18n 2014-10-23 21:43:35 +08:00
output failed 2 error 2014-10-27 23:58:10 +08:00
session 路径分隔符重构 2014-10-13 14:34:42 +08:00
shell Fix #89 2014-10-26 11:44:13 +08:00
static Separate CSSs to handle font-family for buttons 2014-10-28 09:55:00 +09:00
util Fix #94 2014-10-26 15:41:34 +08:00
views Separate font-family 2014-10-28 09:48:11 +09:00
.gitignore . 2014-10-22 17:06:49 +08:00
.gobuild.yml . 2014-10-24 21:13:05 +08:00
LICENSE i18n 2014-10-23 23:14:34 +08:00
README.md Update README.md 2014-10-26 12:37:19 +08:00
main.go Fix #14 2014-10-27 23:02:15 +08:00
wide.bat Fixed wide.bat to not enter an infinite loop 2014-10-25 20:27:34 +03:00

README.md

Wide Build Status

Intro

A Web IDE for Teams using Golang.

Motivation

  • Team IDE:
    • Safe and reliable: the project source code stored on the server in real time, the developer's machine crashes without losing any source code
    • Unified environment: server unified development environment configuration, the developer machine without any additional configuration
    • Out of the box: 5 minutes to setup a server then open browser to develop, debug
    • Version Control: each developer has its own source code repository, easy sync with the trunk
  • Web based IDE:
    • Developer needs a browser only
    • Cross-platform, even on mobile devices
    • Easy for extensions
    • Easy integration with other systems
    • For the geeks
  • A try for commercial-open source: versions customized for enterprises, close to their development work flows respectively
  • Currently more popular Go IDE has some defects or regrets:
    • Text editor (vim/emacs/sublime/Atom, etc.): For the Go newbie is too complex
    • Plug-in (goclipse, etc.): the need for the original IDE support, not professional
    • LiteIDE: no modern user interface :p
    • No team development experience
  • There are a few of GO IDEs, and no one developed by Go itself, this is a nice try

Features

  • Code Highlight, Folding: Go/HTML/JavaScript/Markdown etc.
  • Autocomplete: Go/HTML etc.
  • Format: Go/HTML/JSON etc.
  • Run & Debug: run/debug multiple processes at the same time
  • Multiplayer: a real team development experience
  • Navigation, Jump to declaration, Find usages, File search etc.
  • Shell: run command on the server
  • Git integration: git command on the web
  • Web development: Frontend devlopment (HTML/JS/CSS) all in one
  • Go tool: go get/install/fmt etc.

Architecture

Build & Run

Build & Run

  • A browser tab corresponds to a Wide session
  • Execution output push via WebSocket

Flow:

  1. Browser sends Build request
  2. Server executes go build command via os/exec
    2.1. Generates a executable file
  3. Browser sends Run request
  4. Server executes the file via os/exec
    4.1. A running process
    4.2. Execution output push via WebSocket channel
  5. Browser renders with callback function ws.onmessage

Code Assist

Code Assist

  • Autocompletion
  • Find Usages

Flow:

  1. Browser sends code assist request
  2. Handler gets user workspace of the request with HTTP session
  3. Server executes gocode/ide_stub
    3.1 Sets environment variables (e.g. ${GOPATH})
    3.2 gocode with lib-path parameter

Documents

Demos

  • 20141024-1.0.0, png

Olds

Setup from sources

  1. Downloads source
  2. Gets dependencies with
    • go get -u
    • go get -u github.com/88250/ide_stub
    • go get -u github.com/nsf/gocode
  3. Compiles wide with go build
  4. Configures conf/wide.json (optional)
  5. Runs the executable wide or wide.exe

Known Issues

License

Copyright (c) 2014, B3log Team (http://b3log.org)

Licensed under the Apache License 2.0.

Credits