README.md 1.56 KB
Newer Older
Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
1
# Installation instructions for Clojure workshop
2

3 4 5 6 7 8
## Java

Of course you need Java. Java 6 or higher will suffice. 

Get it [here](http://www.oracle.com/technetwork/java/javase/downloads/index.html).

Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
9
## Git
10

Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
11
Hopefully you already have git, if you don't it's about time ;)
12

Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Get it [here](http://git-scm.com/).

## Leiningen

This is the defacto Clojure build tool. It will setup almost everything for you.

Get it [here](http://leiningen.org/).

## Light Table

This is the editor we will use. Pretty cool with lots of innovative features. Written entirely in ClojureScript.

Get it [here](http://www.lighttable.com/).

## Clone this project

git clone https://gitlab.com/stoyle/clojure-workshop-flatmap.git

## Make leiningen fetch necessary dependencies

33
Execute the following command in the downloaded git workspace:
Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
34 35

```
36
lein do clean, deps, midje, uberjar, install
Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
37 38
```

39
## Setup workspace in Light Table
Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
40 41 42 43

Open project in Light Table`

```
44
File -> Open Folder -> Navigate to folder where you have checked out the project -> Press upload on the workspace folder.
Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
45 46 47 48 49
```

Start a repl at project. Open a Clojure namespace and evaluate:

```
50
"Test/clojure-workshop-flatmap/ex-1" -> Press "Cmd-shift-enter" (Mac) / "Ctrl-shift-enter" (Windows/Linux).
Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
51 52 53
```

This may take a little time. You will see inline light grey markings in the file.
54

55 56 57 58
## Problems?

Don't hesitate to contact me at [email protected]

59 60
## License

Alf Kristian Støyle's avatar
Alf Kristian Støyle committed
61
Copyright © 2014 Alf Kristian Støyle
62

63
Distributed under the [Creative Commons Attribution 4.0 International Public License](http://creativecommons.org/licenses/by/4.0/).