Skip to content

Commit 57a5350

Browse files
committed
Update README
1 parent 2cd40fd commit 57a5350

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# GetClojure
22

33
Searchable Clojure examples programatically compiled from lots of scraping.
4-
GetClojure extracts valid s-expressions from various locations, runs them in a
4+
GetClojure extracts valid s-expressions from a set of logfiles, runs them in a
55
sandbox, and captures the value and output of every s-expression. The result is
66
then made searchable.
77

@@ -16,26 +16,33 @@ Go to [GetClojure](http://getclojure.org) and start searching.
1616
| getclojure.config | Where any globally-necessary project configuration and functions live |
1717
| getclojure.elastic | Houses configuration, query, and seeding from files for elasticsearch |
1818
| getclojure.extract | Contains logic related to parsing clojure IRC logfiles and spitting out files for later consumption |
19-
| getclojure.format | Logic for formatting s-expressions |
19+
| getclojure.format | Logic for formatting and syntax highlighting s-expressions |
2020
| getclojure.routes | Routes for the application |
21+
| getclojure.seed | Runs the full ETL pipeline from logs to seeding elasticsearch |
2122
| getclojure.server | The entrypoint for the server |
22-
| getclojure.sexp | Logic related to running s-expressions: sandboxing via SCI, formatting and printing, and production of files for later consumption|
23+
| getclojure.sexp | Logic related to running s-expressions: sandboxing via SCI |
2324
| getclojure.util | Everyone has a junk drawer. This is ours. |
2425
| getclojure.views.layout | Static HTML generation via Hiccup |
2526

2627
## Developers
2728

2829
In order to run locally in development mode you'll need to do the following:
2930

30-
* `pip install pygments`
31-
* `docker-compose up -d`
31+
* `pip install pygments`: There are a variety of options for keeping your python envs separate. virtualenv, pyenv, etc. Use whatever works for you. Note that you'll need python 3.X or later. In addition, a libpython file is required.
32+
* `docker-compose up -d`: Runs elasticsearch.
3233
* Download the [logs](https://www.dropbox.com/s/19yy3zn5nh8a1gr/clojure-irc-logs.tar.gz?dl=0) and extract them into the `resources/logs` directory.
33-
* Capture the working expressions: `lein extract-sexp-input-file`. Grab a cup of coffee. This takes about 10min on my machine.
3434
* Set the appropriate env vars in your `.envrc`. If you don't use [direnv](https://direnv.net/), you'll need to export `APP_ENV=development` and `INDEX_NAME=getclojure.`
35-
* Run `lein gen-working-sexps`, `lein gen-formatted-sexps`, and finally `lein seed-elastic`.
35+
* Run `lein seed-elastic-partial 25` to get the s-expressions found in the first 25 logfiles, or `lein seed-elastic-full` to run the entire pipeline across all local logfiles.
3636
* Start the server: `lein ring server-headless`
3737
* Visit [localhost:8080](http://localhost:8080) and search.
3838

39+
## Contributions
40+
41+
Contributions welcome. This project uses `lein test-refresh` for rerunning
42+
tests. Run `lein test-refresh :all` to run all tests, including the integration
43+
tests. If you have questions about contributing, please reach out to me on
44+
Clojurians Slack (@devn) or Libera IRC (devn).
45+
3946
## Thanks
4047

4148
* To borkdude for providing so much great open source software to the Clojure community.

src/getclojure/server.clj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,3 @@
1717
(defn -main []
1818
(ring/run-jetty #'app {:port 8080
1919
:join? false}))
20-
21-
(comment
22-
23-
(def server (ring/run-jetty #'app {:port 8080
24-
:join? false}))
25-
(.stop server)
26-
27-
)

0 commit comments

Comments
 (0)