unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Tonton <tonton@riseup.net>
To: tantalum <sph@posteo.eu>
Cc: Guile user <guile-user@gnu.org>,
	Zelphir Kaltstahl <zelphirkaltstahl@gmail.com>
Subject: Re: Lightweight web modules for Guile?
Date: Fri, 29 Jun 2018 23:21:55 +0200	[thread overview]
Message-ID: <20180629232155.401e608e@merlin.browniehive.net> (raw)
In-Reply-To: <dd974398805c7028eb45985b69c4849d@posteo.de>

[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]

Hey.

Thank you both tantalum and Zelphir!

I'm not entirely sure what I need myself to be honest, this is very much a
learning exercise; even though I have a goal to use it. That said, the
web-app project looks more like what I'd like. I'll probably package it for
guix also, if I use it.

On Fri, 29 Jun 2018 18:42:15 +0000
tantalum <sph@posteo.eu> wrote:

> hi, not sure if it is exactly what your looking for but it might be 
> useful for examples and matches the general question.
> i maintain a project named "web-app" at http://sph.mn/c/view/mu or 
> https://github.com/sph-mn/sph-web-app
> the core is small and working well for me so far, ive been maintaining 
> it for a long time. it starts a server and for each request gives a 
> request object to a user defined procedure, which then returns a 
> response object that is send back to the client.
> it comes with an optional module for file processing (templates, 
> preprocessed files, bundling, etc) and has some more cool features like 
> protocol independence (socket -> app -> socket), an exchangeable server 
> (fibers included) and derived projects (using modules and symlinks).
> 
> the project hasnt gone through testing and feedback loops with other 
> users, and the documentation, while technically probably up to date, 
> needs revision i think. here is a minimal usage example, in a file named 
> "example.scm":
> 
>      (import (sph web app) (sph web app http))
>      (define (app-respond request) (respond "test"))
>      (define app (swa-create (quote project-name) app-respond))
>      (swa-start app #f swa-server-guile)
> 
> then running "guile example.scm" displays
> 
>      listening on 127.0.0.1:6500
>      exit with ctrl+c
> 
> the app is then accessible with the browser at http://127.0.0.1:6500

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-06-29 21:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-29 18:42 Lightweight web modules for Guile? tantalum
2018-06-29 21:21 ` Tonton [this message]
2018-06-30 17:15   ` Amirouche Boubekki
  -- strict thread matches above, loose matches on Subject: below --
2018-06-29  1:29 Tonton
2018-07-01 11:15 ` Amirouche Boubekki
2018-07-01 22:21   ` Arne Babenhauserheide
2018-07-15  0:06   ` Tonton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180629232155.401e608e@merlin.browniehive.net \
    --to=tonton@riseup.net \
    --cc=guile-user@gnu.org \
    --cc=sph@posteo.eu \
    --cc=zelphirkaltstahl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).