restxq

Friday, 17 August 2012 · 4 messages · last reply 20 Aug 2012
CM
Colin McEnearney17 Aug 2012 22:26 #
This is a newbie email. I've been using basex for some time for its xquery engine (which is awesome) but never in production or for web development. I have some small projects coming up and looking at it for the db side of a web app I just noticed RESTXQ - looks really cool! I'm not really a developer but I use xquery every day at work and so would love to use it - exclusively if possible. Does restxq mean that you can serve a site with no client (php, ruby, etc) in between the db and the html? basex <-> html That would be so simple and fun, and quite useful for a blog or other not-too-huge type of thing. Or is that totally crazy for security reasons? Colin
DK
Dirk Kirsten18 Aug 2012 08:13 #
Hello Colin, Thanks for your feedback and your excitement about XQuery! Your inquiry is neither newbie-like nor crazy :) We at BaseX, too, love developing completely in the X-Stack. We use RestXQ quite extensively in commercial products and do basically everything with XML-technology. So typically we have BaseX as a persistent layer and use XQuery in combination with RestXQ to implement the business logic. We also use XForms (e.g. using xsltforms or betterforms), which is very nice to create forms. Also, using the development stack feels quite natural, as HTML is also just a XML dialect and so you always use the same technology. Cheers, Dirk
Quoted text · Colin McEnearney · 30 lines
On Fri, Aug 17, 2012 at 8:26 PM, Colin McEnearney <colinmcenearney at gmail.com > wrote: > This is a newbie email. > > I've been using basex for some time for its xquery engine (which is > awesome) but never in production or for web development. I have some small > projects coming up and looking at it for the db side of a web app I just > noticed RESTXQ - looks really cool! > > I'm not really a developer but I use xquery every day at work and so would > love to use it - exclusively if possible. Does restxq mean that you can > serve a site with no client (php, ruby, etc) in between the db and the > html? > > basex <-> html > > That would be so simple and fun, and quite useful for a blog or other > not-too-huge type of thing. > > Or is that totally crazy for security reasons? > > > Colin > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
CG
Christian Grünin reply to Colin McEnearney, 20 Aug 2012, 16:4020 Aug 2012 16:01 #
Hi Colin,
Quoted text · Colin McEnearney · 1 line
> Thanks! That's very interesting. So, in a live site, how is the login to basex handled?
You may specify a default user and password when starting the http server. This can be done either with basexhttp and the -U and -P flags [1], or in the web.xml file when running BaseX as web application [2]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Startup_Options#BaseX_HTTP_Server [2] http://docs.basex.org/wiki/Web_Application#Configuring_Database_Access
Quoted text · Colin McEnearney · 45 lines
> Out of the box, requesting from localhost:8984/restxq/ you get a login prompt. Is there a safe to make this publicly viewable without another layer in between? > > > On Sat, Aug 18, 2012 at 2:13 AM, Dirk Kirsten <dk at basex.org> wrote: >> >> Hello Colin, >> >> Thanks for your feedback and your excitement about XQuery! >> >> Your inquiry is neither newbie-like nor crazy :) We at BaseX, too, love developing completely in the X-Stack. We use RestXQ quite extensively in commercial products and do basically everything with XML-technology. So typically we have BaseX as a persistent layer and use XQuery in combination with RestXQ to implement the business logic. We also use XForms (e.g. using xsltforms or betterforms), which is very nice to create forms. >> Also, using the development stack feels quite natural, as HTML is also just a XML dialect and so you always use the same technology. >> >> Cheers, >> Dirk >> >> On Fri, Aug 17, 2012 at 8:26 PM, Colin McEnearney <colinmcenearney at gmail.com> wrote: >>> >>> This is a newbie email. >>> >>> I've been using basex for some time for its xquery engine (which is awesome) but never in production or for web development. I have some small projects coming up and looking at it for the db side of a web app I just noticed RESTXQ - looks really cool! >>> >>> I'm not really a developer but I use xquery every day at work and so would love to use it - exclusively if possible. Does restxq mean that you can serve a site with no client (php, ruby, etc) in between the db and the html? >>> >>> basex <-> html >>> >>> That would be so simple and fun, and quite useful for a blog or other not-too-huge type of thing. >>> >>> Or is that totally crazy for security reasons? >>> >>> >>> Colin >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >> > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
CM
Colin McEnearneyin reply to Dirk Kirsten, 18 Aug 2012, 08:1320 Aug 2012 16:40 #
Thanks! That's very interesting. So, in a live site, how is the login to basex handled? Out of the box, requesting from localhost:8984/restxq/ you get a login prompt. Is there a safe to make this publicly viewable without another layer in between?
Quoted text · Dirk Kirsten · 49 lines
On Sat, Aug 18, 2012 at 2:13 AM, Dirk Kirsten <dk at basex.org> wrote: > Hello Colin, > > Thanks for your feedback and your excitement about XQuery! > > Your inquiry is neither newbie-like nor crazy :) We at BaseX, too, love > developing completely in the X-Stack. We use RestXQ quite extensively in > commercial products and do basically everything with XML-technology. So > typically we have BaseX as a persistent layer and use XQuery in combination > with RestXQ to implement the business logic. We also use XForms (e.g. using > xsltforms or betterforms), which is very nice to create forms. > Also, using the development stack feels quite natural, as HTML is also > just a XML dialect and so you always use the same technology. > > Cheers, > Dirk > > On Fri, Aug 17, 2012 at 8:26 PM, Colin McEnearney < > colinmcenearney at gmail.com> wrote: > >> This is a newbie email. >> >> I've been using basex for some time for its xquery engine (which is >> awesome) but never in production or for web development. I have some small >> projects coming up and looking at it for the db side of a web app I just >> noticed RESTXQ - looks really cool! >> >> I'm not really a developer but I use xquery every day at work and so >> would love to use it - exclusively if possible. Does restxq mean that you >> can serve a site with no client (php, ruby, etc) in between the db and the >> html? >> >> basex <-> html >> >> That would be so simple and fun, and quite useful for a blog or other >> not-too-huge type of thing. >> >> Or is that totally crazy for security reasons? >> >> >> Colin >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >

⚡Generated with XQuery