Home
Articles
APIs
Kvarn
DNS
httPWM

Online VS Code for frontend and backend development

A guide about setting up a remote programming environment with all the pros of VS Code and multi-user support. Works on Chromebooks!

In this article, I’ll cover how to set up a remote coding environment using code-server. If you want the tutorial, skip to Requirements.

Background

I’m teaching a beginners class on programming based on my introduction to programming. The students all work on Chromebooks, a sad part of reality I had to work my way around. I recalled hearing about some project enabling VS Code in the cloud, which sounded perfect! After a bit of searching, I found this video from Fireship.

So, the restraints for this project was

After realizing these goals, I set out to a quest to use the newly implemented reverse-proxy in Kvarn as a HTTPS relay for code-server. Kvarn also hosts the user-friendly homepage.

Requirements

This is designed to be a light-weight and performant package. I’ll use this for Rust development with Kvarn, with about 20 concurrent users, so I’m using a virtual machine with 6 threads (probably overkill) and 2 GB memory.

I also greatly recommend installing the Fish shell (Arch package) if you intend for any beginners to access the shell, since Fish’s autocompletion and ergonomics are very friendly (and also a very nice shell to work with compared to Bash).

User management

I had two options for Linux user management.