aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2025-07-05 09:12:41 +0200
committerPjotr Prins2025-07-05 09:12:41 +0200
commit840c40759aa9b1960d03414d8c70cd1ca3605a61 (patch)
tree45081cfabadf0538d2da3021b774312e01901bfc
parent169d26710c978484f8e9464a95be6eaa47fa704e (diff)
downloadgn-guile-840c40759aa9b1960d03414d8c70cd1ca3605a61.tar.gz
README
-rw-r--r--README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index d3326bd..c9b7bc2 100644
--- a/README.md
+++ b/README.md
@@ -31,8 +31,19 @@ GNU Guile allows you to develop against a live running web server using emacs-ge
guix shell --container --network --file=guix.scm -- guile -L . --fresh-auto-compile --listen=1970 -e main web/webserver.scm 8091
```
+By default the root points to the API:
+
+curl http://127.0.0.1:8091
+
+We also have some services
+
+curl http://127.0.0.1:8091/home/msk
+curl http://127.0.0.1:8091/home/aging
+
The `--container` option runs the code in an isolated container, and the `--network` option connects that container's networking to the host to allow you to access the running service.
+If you get an error `no code for module (gn packages guile)` add the guix-bioinformatics repo to the load path (`-L` switch).
+
## Welcome to the world of interactive Lisp programming
Next fire up emacs with `emacs-geiser-guile` and connect to the running web server with `M-x geiser-connect` and the port `1970`. Now you can not only inspect procedures, but also update any prodedure on the live server using `C-M-x` on code, call and get updated output from the webserver! No need to save/reload files and all that.
@@ -43,8 +54,6 @@ Note that you may have to try different versions of guile+emacs to succeed.
Some tooling and scripts that run independently are stored in `./scripts`.
-
-
# Development
```