A lightweight cloud-based development environment using DevSpace and Visual Studio Code
Terminal is a light-weight development environment that compliments DevSpace for software development. By running inside the cluster you're developing against, operations are lightning fast and uploads are quick. Terminal also manages a web-based VSCode installation too, so you can edit your files directly.
First, you deploy terminal from your computer into the cluster.
Then you enter the terminal and clone your repositories.
Then you connect to the web-based VSCode IDE and edit your tests and code.
When you are ready to start your app, then you run $ devspace dev
from within terminal.
The port forwarding rules are setup to forward traffic from your app pod, to the terminal pod, and then to your computer.
- Have a kubernetes cluster setup and Loft installed
- Have
devspace
CLI and the Loft plugin installed
- Ensure you have a space selected (or create a new one)
- Locally,
$ cd ~/workspace/devspace-terminal
- Start terminal by
$ devspace dev
- leave this running in the background
- In another terminal window, enter the terminal shell by
$ devspace enter -c terminal
- Clone your git repositories by:
Terminal $ cd ~/workspace
Terminal $ git clone git@github.com:noizwaves/fitness.git
Terminal $ cd fitness
Terminal $ git checkout using-terminal
- Start the app by
Terminal $ devspace dev
- Launch Visual Studio Code by:
- Starting Visual Studio Code locally
- Following the setup instructions for remote development
- Attaching to the
fitness-web
pod
- Open the app locally at http://localhost:3000
- Automatic pass-through of SSH key for GitHub and Loft configuration
- Synchronization of key development configurations via the
./home
directory:~/.gitconfig
for Git configuration~/.aliases
for custom aliases, functions, and prompts