Compare commits

...

3 commits

Author SHA1 Message Date
David Botton
152d765c6e First App README fix 2025-07-04 14:09:54 -04:00
David Botton
faf81466c2 First App README 2025-07-04 14:06:24 -04:00
David Botton
06266478d4 add install slideshow 2025-07-04 12:57:16 -04:00
2 changed files with 81 additions and 1 deletions

3
LEARN.md vendored
View file

@ -6,9 +6,10 @@ L E AAAAA R R N NN C L O O G G
LLLL EEEE A A R R N N CCCC LLLL OOOOO GGGGG
```
COMMON LISP "Instant Common Lisp"
COMMON LISP "Instant Common Lisp" - Watch these 2 first
* [Instant Common-Lisp](https://docs.google.com/presentation/d/1dDfk7PnsW2Vvjky1G7kVIHJHwLwQw7V73taJp0zBlEY)
* [Instant Install Lisp+IDE+CLOG](https://docs.google.com/presentation/d/16egmnPGA88RVOl0zhurxw6uLnA86v-lBe_SHZA7CWOg)
Install COMMON LISP

79
README.md vendored
View file

@ -171,6 +171,85 @@ CL-USER> (clog:open-manual)
Work your way through the tutorials. You will see how quick and easy it is
to be a CLOGer.
F i r s t C L O G A p p
===========================
** 1 Smallest CLOG App - in a REPL
```lisp
(ql:quickload :clog)
(in-package :clog-user)
(initialize (lambda (body) (create-div body :content "Hello World")))
```
Open browser to http://127.0.0.1:8080/
Or launch with (open-browser)
** 2 Minimal CLOG App - Quick Lisp
(in common-lisp or another asdf reachable location)
```
cd ~/common-lisp
mkdir agui
cd agui
```
Create a project file agui.asd
```lisp
(asdf:defsystem #:agui
:description "Hello World"
:author "some@one.com"
:license "BSD"
:version "0.0.0"
:serial t
:depends-on (#:clog)
:components ((:file "agui")))
```
Create the agui.lisp file
```lisp
(defpackage #:agui
(:use #:cl #:clog)
(:export start-app))
(in-package :agui)
(defun on-new-window (body)
(create-div body :content "Hello World"))
(defun start-app ()
(initialize 'on-new-window)
(open-browser))
```
** 3 Minimal CLOG App - OCICL - Best Method
To install ocicl -
https://docs.google.com/presentation/d/16egmnPGA88RVOl0zhurxw6uLnA86v-lBe_SHZA7CWOg
Can be anywhere on your system any OS
```
mkdkir helloworld
cd helloworld
ocicl setup > init
ocicl install clog
```
(If on Windows you will need the open source dlls in any project dir:
https://rabbibotton.github.io/clog/clogframe.zip )
Run bash run-ocicl or run-ocicl.bat on Windows
Edit helloworld.lisp with bash edit-ocicl or edit-ocicl.bat
M o r e I n f o
=================
![Image of clog-builder](https://rabbibotton.github.io/images/clog-builder.png)
![Image of clog-builder-web](https://rabbibotton.github.io/images/cb-web.png)
![Image of demo1](https://rabbibotton.github.io/images/clog-demo1.png)