add some repl tips
This commit is contained in:
parent
56d45ad311
commit
504ce2e567
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
|
@ -21,6 +21,23 @@ This project is written in [Clojure](https://clojure.org/) and data is stored in
|
|||
$ 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
|
||||
|
||||
At this point I'm using a private AWS ECR repository for the project and deploying it in my homelab.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue