[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: web service development progress



Very, very nice!  I particularly like the use of Dyntype for the forms.  A Dyntype interface to JSON would generally be useful as a separate library in fact -- I'm just tidying up a standalone "Cowabloga" homepage generator at the moment that provides libraries to the Zurb Foundation work.

-anil

On 6 Nov 2013, at 09:04, Christopher Greenhalgh <Chris.Greenhalgh@xxxxxxxxxxxxxxxx> wrote:

It isn’t pretty, and I’ll add some interface files and comments at some point, but in case anyone else is also trying to do web development in mirage I thought I’d make an early “announcement” of
 
So far, starting from mirage-www, I have hacked together basic session handling support (session.ml using memorystore.ml), initial login framework (login.ml), persistence over baarskeerder (persist.ml – just a stub, plus idiomatic usage in…), basic html CRUD interface for admin database operations driven by dyntype information (dbforms.ml), and multipart form upload support (mime.ml).
I intend to use _javascript_ for the main UI so I’ll add a dyntype-based RESTful interface next, I think, and tidy up the authentication a bit.
 
I’m developing/testing on Unix/sockets at the moment and this is currently hardcoded in places (in persist.ml).
For Unix you need to create (touch) a file called “2049” (used by the blkdev) before running it.
Only built-in account (for access to db forms) is currently “admin”/”password” :-)
P.s. most browsers don’t set/send cookies for domain “localhost” (because it has no dots), but they do for “127.0.0.1”, so use the latter to be able to login.
 
Cheers
Chris
 

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.