Posts Tagged ‘postmodern’

Lisp Web Server From Scratch using Hunchentoot and Nginx

November 9, 2010

**************************I tried my setup on Ubuntu 13.10 server and had some issues so I decided to update this article, unfortunately I dont have the time to rewrite it so I am just hacking the bits that where issues on Ubuntu 13.10**********************

So you want your own lisp web server to hack away at but where do you start? Well don’t despair, what follows is a recipe for getting such a server running in no time. (Don’t worry you won’t be coding it from scratch you will be building it with a “software lego” set.)

Much of what you will see here was taken from different websites especially these two great articles http://blog.ponto-dot.com/2010/08/15/setting-up-common-lisp-on-a-web-server and http://blog.ponto-dot.com/2009/08/18/hunchentoot-behind-proxy-server. These articles do a better job of explaining what is afoot than my posting here. Please do go to these articles and show your appreciation for the hard work that went into them by leaving a comment.

All that I am doing is giving you an A to Z recipe in one place to get you going.

There are a lot of good articles in the slicehost articles collection as well that are worth a read on their own if you want to understand more about the iptables and stuff.

(more…)

Advertisements

Hunchentoot & Postmodern Quicky

February 23, 2009

I have only been using hunchentoot and lisp seriously for a few months. I AM NO expert in lisp or hunchentoot so please feel free to correct and/or chastize me regarding anything in this little piece.

Firstly get everything you need installed! (Script to follow one day…)

The example website uses hunchentoot 1.0 and postmodern, I tried to include a variety of features that you would find on a average website, stuff like style sheets, javascript, images, some db integration and of course a kewl “made with lisp” logo from http://www.normal-null.de/lisp_logo.html.

The example has 2 pages for now, a login and home page with all the user and roles plumbing needed. The roles and user stuff comes form a postgresql database and we use postmodern to get to it. In a follow up piece I will add a biographical screen, displaying the data in a grid with all its parafinalia (editing, paging, search etc).

This piece is not for absolute newbie’s but for some one that has the basics of lisp and just wants to see hunchentoot and postmodern in action together.

For now I am only adding the code needed. I will keep on hacking away at it till it looks more like a tutorial.

(more…)