https://github.com/pez/pirate-lang
Zero Install Calva + Gitpod + VNC + deps.edn demo project
https://github.com/pez/pirate-lang
Last synced: about 1 year ago
JSON representation
Zero Install Calva + Gitpod + VNC + deps.edn demo project
- Host: GitHub
- URL: https://github.com/pez/pirate-lang
- Owner: PEZ
- Created: 2020-04-06T21:25:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T13:45:10.000Z (over 4 years ago)
- Last Synced: 2025-01-26T04:25:16.747Z (over 1 year ago)
- Language: Clojure
- Homepage:
- Size: 43 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calva in GitPod
This is a test/demo project for using [Calva](https://github.com/BetterThanTomorrow/calva) in [GitPod](https://gitpod.io).
## Usage
**Installation**: Just kidding, there is no installation!
1. 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**._
1. 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.
1. 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.
## See a demo first?
Fair enough!
https://user-images.githubusercontent.com/30010/139400323-cf1284ac-e931-49b5-8da0-bbbb3f22fbf8.mp4
Please give it a like on Youtube! https://www.youtube.com/watch?v=oXU17qZjtWM
### javax.swing Example
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:
```clojure
(comment
(require 'clojure.inspector)
(clojure.inspector/inspect (range 7))
)
```
## New to Clojure?
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/
## License
The code in this project is open and free. πΊπ½