3 ms·
Here's an updated version with DB tables (PostGres) that runs: https://github.com/tamurashingo/reddit1.0/ https://github.com/tamurashingo/reddit1.0/ Requir
by vindarel 3y ago
Here's an updated version with DB tables (PostGres) that runs: https://github.com/tamurashingo/reddit1.0/ 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://github.com/fukamachi/clack
- https://lispcookbook.github.io/cl-cookbook/web.html https://lispcookbook.github.io/cl-cookbook/web.html
- https://github.com/CodyReichert/awesome-cl#web-frameworks https://github.com/CodyReichert/awesome-cl#web-frameworks
- Capricorn2481 3y agoHTMX is not anymore framework agnostic than JS. It's a JS library. You can use any backend with either.
- decross 3y agoHe 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.
- Capricorn2481 3y agoYes, that is the same with javascript.