Skip to content

A minimal Clojure project, to fill with your own code. Ready for use in the browser with full IDE (VS Code + Calva) support

Notifications You must be signed in to change notification settings

PEZ/clojure-zero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Clojure project for web based development

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.

Usage

To use this in the browser.

  1. 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.
  2. 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.
  3. Open the file src/hello/core.clj
  4. Evaluate the (ns ...) form there (instructions in the file)

Hack away.

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/ (It also runs in the browser)

Create your own copy of this repository

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.

License

The code in this project is open and free to use as you wish. 🗽🍺 (There's not much code here, anyway. 😄)

About

A minimal Clojure project, to fill with your own code. Ready for use in the browser with full IDE (VS Code + Calva) support

Resources

Stars

Watchers

Forks