https://github.com/torchiaf/code-editor
Deploy code-server on kubernetes, providing authentication and multi-user support
https://github.com/torchiaf/code-editor
app code-editor code-server editor go helm kubernetes web-ide
Last synced: 6 months ago
JSON representation
Deploy code-server on kubernetes, providing authentication and multi-user support
- Host: GitHub
- URL: https://github.com/torchiaf/code-editor
- Owner: torchiaf
- License: mit
- Created: 2023-07-06T18:44:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T08:52:54.000Z (over 1 year ago)
- Last Synced: 2024-04-10T10:05:42.262Z (over 1 year ago)
- Topics: app, code-editor, code-server, editor, go, helm, kubernetes, web-ide
- Language: Go
- Homepage:
- Size: 220 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# code-editor
code-editor is an open source application to deploy [code-server](https://github.com/coder/code-server) on Kubernetes, adding a JWT authentication and multi-user support.
## Requirements
- Node
- Helm
- k3d
- kubectl
- yq
## Quick Start
### Installation
# Provide dev tools
npm install
# Create a new cluster using k3d
npm run cluster:create
# Install code-editor using Helm charts
npm run code-editor:install
### Using code-editor
`code-editor` provides http APIs to manage users and code-server instances. Consult the full API list here [Openapi spec](https://github.com/torchiaf/code-editor/blob/main/docs/openapi.yaml)
#### Workflow
- Login:
```
POST https://localhost/code-editor/api/v1/login
```
- Create `code-server` instance:
```
POST https://localhost/code-editor/api/v1/views
response:
{
"viewId": "0001",
"path": path of the code-server instance UI,
"query-param": path to the cloned repo provisioned in the code-server instance,
"code-server-session": code-server instance token to use in the browser
}
```
- Go to https://localhost/code-editor/$path/?folder=$query-param and enjoy the power of VSCode in your web browser!
### Console
The web-gui console is accessible here: https://localhost/code-editor/console .
- Admin users can assign new Code Editor instances to the standard users.
- Standard Users can use it to access to their code instances.
Admin console

Create Page

Users console

VSCode instance
