code-editor is an open source application to deploy code-server on Kubernetes, adding a JWT authentication and multi-user support.
- Node
- Helm
- k3d
- kubectl
- yq
# 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
code-editor
provides http APIs to manage users and code-server instances. Consult the full API list here Openapi spec
-
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!
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