Go to file
Liang Ding 6600fec368 #176 2014-12-05 15:16:08 +08:00
conf . 2014-12-05 14:14:28 +08:00
doc Update README.md 2014-09-18 16:19:38 +08:00
editor HTTP Session expire validate 2014-11-26 13:49:27 +08:00
event add file header 2014-11-12 23:13:14 +08:00
file #176 2014-12-05 15:08:44 +08:00
i18n #176 🏃 2014-12-05 11:50:46 +08:00
notification logging 2014-11-20 22:53:54 +08:00
output #177 2014-12-03 17:00:24 +08:00
session refactor new user ♻️ 2014-12-05 13:44:59 +08:00
shell HTTP Session expire validate 2014-11-26 13:49:27 +08:00
static #176 2014-12-05 15:08:44 +08:00
util prefs select option enhance 2014-11-26 11:54:01 +08:00
views #176 2014-12-05 15:16:08 +08:00
.gitignore . 2014-11-16 21:13:16 +08:00
.gobuild.yml update package script 2014-11-12 14:56:59 +08:00
.header.json #139 2014-11-13 11:54:52 +08:00
.header.txt . 2014-11-13 21:40:11 +08:00
.travis.yml Create .travis.yml 2014-11-28 09:59:11 +08:00
Dockerfile :octocat: 2014-11-20 16:08:17 +08:00
LICENSE i18n 2014-10-23 23:14:34 +08:00
README.md Update README.md 2014-12-04 13:51:11 +08:00
main.go #17 2014-11-30 10:18:17 +08:00
pkg.sh update package script 2014-11-12 14:56:59 +08:00

README.md

Wide Build Status Apache License API Documentation Download

Have a try first, and then help us to make it happen!

Intro

A Web-based IDE for Teams using Golang.

Hello, 世界

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 to extend
    • Easy to integrate 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.
  • Build & Run
  • Debug
  • 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.
  • File Import & Export
  • Themes

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

Download Binary

We have provided OS-specific executable binary as follows:

  • linux-amd64/386
  • windows-amd64/386
  • darwin-amd64/386

Download HERE!

Build Wide for yourself

  1. Download source or by git clone
  2. Get dependencies with
    • go get
    • go get github.com/88250/ide_stub
    • go get github.com/nsf/gocode
  3. Compile wide with go build

Docker

  1. Get image: sudo docker pull 88250/wide:latest
  2. Run: sudo docker run -u wide -p {ip}:{port}:7070 88250/wide:latest ./wide -docker=true -channel=ws://{ip}:{port}

Known Issues

License

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

Licensed under the Apache License 2.0.

Credits