From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: GSoC: Adding a web interface similar to the Hydra web interface Date: Tue, 22 May 2018 07:33:15 +0200 Message-ID: <87r2m4ntk4.fsf@mdc-berlin.de> References: <87vac3twbe.fsf@gnu.org> <87o9hog2ye.fsf@elephly.net> <87d0xyn9zs.fsf@elephly.net> <87d0xswvls.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKzvn-0001YH-I1 for guix-devel@gnu.org; Tue, 22 May 2018 01:33:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKzvl-0000vd-Eb for guix-devel@gnu.org; Tue, 22 May 2018 01:33:55 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fKzvl-0000vQ-6a for guix-devel@gnu.org; Tue, 22 May 2018 01:33:53 -0400 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tatiana Sholokhova Cc: guix-devel Hi Tatiana, > I have already created a small module implementing basic HTML templates i= n > Scheme. Also, I have made an extension to the Cuirass Web API. It respond= s > on the "/status" request and generates a page with a minimalistic HTML > table displaying the list of specifications stored in the database. Excellent. > My login on Savannah is "TSholokhova". I am looking forward to making my > first commit. I would be glad to receive comments on my code to be sure > that I am moving in the right direction. The Cuirass repository is available at http://git.savannah.gnu.org/cgit/guix/guix-cuirass.git I have added your account to the group, so you should have write access to the repository now. Please push your commits to a new branch on that repository. Please also read the section =E2=80=9CCoding Style=E2=80=9D in= the Guix manual. You are welcome to rewrite your own published commits in your own branch, but not in other branches. When you want us to comment on your work, please let us know the range of commits that you would like us to review. Ideally, we would be able to merge your work into the =E2=80=9Cmas= ter=E2=80=9D branch regularly. > You have mentioned that many users would prefer an interface working > without javascript running. Am I right that we would like to have a > non-interactive (js-free) interface working and also add some functionali= ty > (e. g. search tools for tables) via javascript? Yes, this sounds like a good idea. It is not absolutely necessary, but it would be nice if basic features of the interface would still be usable even when JavaScript is disabled. > Also, I have a couple of questions regarding the frontend part. What > frontend framework we would prefer? If I get it right, Hydra uses > Bootstrap. It is fine to use Bootstrap. Please include the unminified Bootstrap CSS and JS files to the repository. It is easy to minify them later, but it is virtually impossible to turn minified code into something readable. > For the frontend implementation, we need to include some static > css&js files in the interface and serve them somehow. Is it a good idea t= o > serve the static files by Cuirass web server in Scheme? Yes, this can be done by the Cuirass web server in Scheme. In the web interface for RCAS I=E2=80=99m dispatching to =E2=80=9Crender-st= atic-asset=E2=80=9D in the controller: https://github.com/BIMSBbioinfo/rcas-web/blob/master/rcas/web/controlle= r.scm =E2=80=9Crender-static-asset=E2=80=9D is defined here: https://github.com/BIMSBbioinfo/rcas-web/blob/master/rcas/web/render.sc= m#L65 As you can see, this module defines a bunch of mime types and includes the appropriate type in the headers along with the contents of the file it serves. Hope this helps! -- Ricardo