Brackets Server is a server for providing hosted version of the popular code editor Brackets.
Brackets Server is a server for providing hosted version of the popular code editor Brackets. The code editor can be loaded directly in the web browser and it doesn’t require additional installations or browser extensions. Brackets works just like the desktop version, except that all projects and files reside on the server instead of the local file system.
The server may be useful for remote development, real-time changes and testing, development form thin clients or devices such as tablets, or it could be used in conjunction with other web applications for collaboration.
To check the current verion of Brackets source used in the server, please see CHANGELOG.
Install from npm:
$ npm install brackets -g
$ brackets --port 80 --proj-dir /var/projects --supp-dir /var/brackets
IMPORTANT: Make sure projects directory exists.
All arguments are optional.
|Short Option||Long Option||Default Value||Description|
|TCP port on which Brackets server is listening.|
|Root directory for projects. Directories above this root cannot be accessed.|
|Root directory for Brackets supporting files such as user extensions, configurations and state persistence.|
|Allows Node domains to be loaded from user extensions.|
NOTE: Some Brackets extensions require external Node.js process, called node domain. Node domains run on the server, thereby allowing arbitrary code to be executed on the server through custom extensions. Since this imposes very serious security and stability risks, Brackets Server will not load nor execute domains from user extensions, unless
-d option is specified.
Example with Express:
var path = require"path"http = require"http"express = require"express"brackets = require"brackets"app = expressserver = httpcreateServerapp;appget"/"ressend"Hello World";;var bracketsOpts =projectsDir: pathjoin__dirname ".."supportDir: pathjoin__dirname ".." "/support";bracketsserver bracketsOpts;serverlisten3000;console.log"Your application is availble at ";console.log"You can access Brackets on ";
NOTE: The default values for
supportDir are different when Brackets Server is initiated from code. They are respectively
./brackets, relative to the current working directory.
|httpRoot||Defines the root HTTP endpoint for Brackets Server (http://yourdomain.com/brackets).|
|projectsDir||Root directory for projects. Directories above this root cannot be accessed.|
|supportDir||Root directory for Brackets supporting files such as user extensions, configurations and state persistence.|
|allowUserDomains||Allows Node domains to be loaded from user extensions.|
Copyright (c) 2012 Boyan Rabchev email@example.com. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.