-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/jagenjo/wide.js
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,48 @@ | ||
# wide.js | ||
An web IDE (mostly a coding editor) based in monaco (with a one-file server made in php) | ||
|
||
WIDE is a Web IDE based in monaco-editor, it allows to edit remote files in your own server quite easily, instead of having to use local files or uploading files through SFTP. | ||
|
||
It allows to open several files, to browser remote folders, and the privileges are based in a config.json that you can store server side. | ||
|
||
![WIDE preview](wide_preview.PNG "WIDE preview") | ||
|
||
It has a layer of security but it is not as safe as I would like to, so do not use it if your code is very sensitive to people trying to hack you. | ||
|
||
# usage | ||
|
||
Copy all repository files to a folder in your host accessible from HTTP. | ||
|
||
Create the ```wide_config.json``` in a folder that is not accessible through HTTP, like ```/home/``` or ```/home/YOUR_USERNAME''': | ||
|
||
```json | ||
{ | ||
"projects":{ | ||
"PROJECT_KEY": { | ||
"name":"Project1", | ||
"folder":"/srv/www/mysite.com/www/public_html/", | ||
"play":"https://mysite.com/" | ||
}, | ||
"PROJECT_KEY2": { | ||
"name":"Project2", | ||
"folder":"/srv/www/mysite2.com/www/public_html/", | ||
"play":"https://mysite2.com/" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Where ```PROJECT_KEY``` is the key that grants you access to that folder (and all its subfolders). | ||
|
||
Once installed, you access the website and set the key typing in the bottom bar: | ||
``` | ||
key PROJECT_KEY | ||
``` | ||
|
||
You can use the buttons on top of the sidebar to browser server files. | ||
|
||
## Contact | ||
|
||
For any suggestions or comments, you can contact me at [email protected] | ||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.