add some repl tips

This commit is contained in:
Travis Shears 2026-02-28 14:56:23 +01:00
parent 56d45ad311
commit 504ce2e567
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469

View file

@ -21,6 +21,23 @@ This project is written in [Clojure](https://clojure.org/) and data is stored in
$ clojure -M -m snippets.infra.api $ clojure -M -m snippets.infra.api
``` ```
### Repl
```
$ rlwrap clojure
; print stuff
(clojure.pprint/pprint {:name "Alice" :age 30})
; import modules
(require 'clojure.string)
(require '[clojure.string :as str])
(require 'my.namespace :reload)
; list namespace contense
(dir clojure.string)
; Switch into a namespace
(in-ns 'my.namespace)
(in-ns 'user)
```
### How to create docker image ### How to create docker image
At this point I'm using a private AWS ECR repository for the project and deploying it in my homelab. At this point I'm using a private AWS ECR repository for the project and deploying it in my homelab.