This is a test/demo project for using Calva in GitPod.
Installation: Just kidding, there is no installation!
- Click this button:
- It links here: gitpod.io/#https://github.com/PEZ/pirate-lang
- This will open the repository in a Gitpod workspace in the browser. (Might take a little while.) There will be an instance of VS Code and a VNC window there.
- NB: If you don't have a Gitpod account, use the option to Sign-up with GitHub.
- In the VS Code instance open the VS Code command palette and use the command Start a REPL in your Project and Connect (aka Jack-in).
- Choose the
deps.edn
project type.
- Choose the
- Hack away! If this is all new and confusing, see New to Clojure below first. Even if you are not new to Clojure, that guide will introduce you to Calva enough to figure this project out.
Fair enough!
gitpod-vnc-clojure-swing-w-sound.mp4
Please give it a like on Youtube! https://www.youtube.com/watch?v=oXU17qZjtWM
When you start this as a Gitpod workspace, it automatically starts a VNC server, so that you can hack out desktup GUI apps. By default it opens a VNC viewer integrated in VS Code. You can pop it out to a separate browser window, if you like.
There's a small swing Hello World example in src/pez/lab/swing_example.clj
. You can also just do something like this to open a Swing window:
(comment
(require 'clojure.inspector)
(clojure.inspector/inspect (range 7))
)
There is not much guidance in this repository for Clojure beginners. You might want to check out this guide first: https://calva.io/get-started-with-clojure/
The code in this project is open and free. 🍺🗽