Hacker News new | ask | show | jobs
by vindarel 1105 days ago
Here's an updated version with DB tables (PostGres) that runs: https://github.com/tamurashingo/reddit1.0/

    Require:

    CommonLisp (tested on SBCL)
    PostgreSQL
    memcached
    smtp server

    CL-USER> (reddit:startup-reddit)
    #<HUNCHENTOOT:EASY-ACCEPTOR (host *, port 8000)>
Writing a CL web app today is definitely doable. You won't find a framework with bells and whistles (yet), but all the required building blocks: web servers (Hunchentoot or Clack, like WSGI for Python), choice in templating engines (Djula is Django-like and I like it a lot), etc.

To replace JS a maximum I use HTMX which is language and framework agnostic, life is beautiful.

In the end, you can build a static binary with all the static assets, send it to your server and run it.

- https://github.com/fukamachi/clack

- https://lispcookbook.github.io/cl-cookbook/web.html

- https://github.com/CodyReichert/awesome-cl#web-frameworks

1 comments

HTMX is not anymore framework agnostic than JS. It's a JS library. You can use any backend with either.
He meant that HTMX can work with a backend written in any language/framework. It doesn't constrain you to use any specific server-side tech.
Yes, that is the same with javascript.