GithubHelp home page GithubHelp logo

torchiaf / code-editor Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 458 KB

Deploy code-server on kubernetes, providing authentication and multi-user support

License: MIT License

Mustache 1.11% Dockerfile 0.32% Go 31.80% Shell 0.49% JavaScript 0.99% TypeScript 41.50% HTML 18.34% SCSS 5.44%
code-editor editor go kubernetes app web-ide helm code-server

code-editor's Introduction

code-editor

code-editor is an open source application to deploy 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

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

image

Create Page

image

Users console

image

VSCode instance

image

code-editor's People

Contributors

torchiaf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

webclinic017

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.