Skip to content

Commit 24ffacb

Browse files
committed
Add comments for packaging and executing package
1 parent 2b711d0 commit 24ffacb

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Clojure Lab materials
44

5-
## Usage
5+
## Run from repository
66

77
### Prerequisites
88

@@ -26,6 +26,41 @@ lein gorilla :port 55555
2626

2727
[Start](http://127.0.0.1:55555/worksheet.html?filename=src/cljlab/start.clj)
2828

29+
## Creating a standalone package
30+
31+
Create the uberjar:
32+
33+
```
34+
rm target
35+
lein uberjar
36+
```
37+
38+
Compress the directory into a zip (this may vary per platform):
39+
40+
```
41+
cd ..
42+
zip -r clojure-lab clojure-lab/images clojure-lab/src clojure-lab/target/*-standalone.jar
43+
```
44+
45+
## Running the standalone package
46+
47+
### Step 1: Unzip the zip file
48+
49+
```
50+
unzip clojure-lab.zip
51+
cd clojure-lab
52+
```
53+
54+
### Step 2: Start the server
55+
56+
```
57+
java -jar target/clojure-lab-0.1.0-SNAPSHOT-standalone.jar
58+
```
59+
60+
### Step 3: View the page in your browser
61+
62+
[Start](http://127.0.0.1:55555/worksheet.html?filename=src/cljlab/start.clj)
63+
2964
## Contributions
3065

3166
This repository is free for all to use in learning Clojure. You are welcome to use it for any non-commercial use - free public workshops, internal company workshops, etc.

0 commit comments

Comments
 (0)