This is a mini(mal) Clojure project that you can hack on, with full editor tooling, in the browser. It's VS Code with Calva running in GitPod. You don't need to install anything. You'll need a Github account, that's all.
You can of course also hack on it locally on your machine. Then you need to have Java installed.
To use this in the browser.
- Click this link: https://gitpod.io/#https://github.com/PEZ/clojure-zero
- You will be prompted to log in, choose to use Github login
- This will open the repository in a Gitpod workspace in the browser. (Might take a while.)
- You'll find VS Code running there, ready to let you edit the files in the project.
- VS Code will have Calva installed, so it's basically a Clojure IDE in the browser.
- 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. - This will start the Clojure REPL and connect Calva to it.
- Choose the
- Open the file src/hello/core.clj
- Evaluate the
(ns ...)
form there (instructions in the file)
Hack away.
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/ (It also runs in the browser)
In order to be able to version control your edits, you will need to create your own copy of this repository. It's a template project so you can use the green Use this Template button above for this.
Note that then the URL to use the project in Gitpod changes. What you'll need to do is to prepend the URL of your Github repository copy with https://gitpod.io/#
. (If you look at step one above, you'll see that this is what that link looks like.)
Note that the first time you open your copy in Gitpod, it can take quite a while.
The code in this project is open and free to use as you wish. 🗽🍺 (There's not much code here, anyway. 😄)