slipstream/SlipStreamUI


SlipStream User Interface

Language: Clojure


SlipStreamUI

This is a sub-repo of SlipStream. Go to the main repo for general information about the project.

Enlive

To generate the HTML UI, SlipStream uses Cristophe Grand's templating framework "Enlive". You might want to check out following documentation:

Static pages

For development and testing purposes there is the possibility to generate static examples of the different pages of the SlipStream application, i.e. without the need to couple it with a SlipStream Server and real data.

To launch the static pages first clone this project and cd into its folder:

git clone git@github.com:slipstream/SlipStreamUI.git
cd SlipStreamUI

In this folder you will find a basic Makefile with the only purpose of gathering a useful set of terminal commands to launch common tasks. To launch the static pages we need a clojure REPL, which can be started with make repl. Then enter (reload-headless-app) and open http://localhost:8082/, both actions suggested in the prompt. You should see something like the following output:

$ make repl
(cd clj; lein repl)

nREPL server started on port 59380 on host 127.0.0.1 - nrepl://127.0.0.1:59380
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.7.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14

      Docs: (doc function-name-here)
            (find-doc "part-of-name-here")
    Source: (source function-name-here)
   Javadoc: (javadoc java-object-or-class-here)
      Exit: Control+D or (exit) or (quit)
   Results: Stored in vars *1, *2, *3, an exception in *e

SlipStream: (reload-headless-app) to start the headless test server.

user=> (reload-headless-app)
run-server* [slipstream.ui.main]
2015-07-13 18:58:28.222:INFO:oejs.Server:jetty-7.6.1.v20120215
2015-07-13 18:58:28.259:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8082

The headless test server has started successfully on port 8082.
Go to following URL for a list of existent test pages:

  http://localhost:8082/

If code changes (in clojure or HTML) are not taken into account, just reload the headless app.
#object[org.eclipse.jetty.server.Server 0x54ccb9a7 "org.eclipse.jetty.server.Server@54ccb9a7"]
user=>

Opening the URL mentioned above will show a list of the used HTML templates and the available static pages. Clicking them will open the corresponding page in a new tab.

Project Statistics

Sourcerank 4
Repository Size 11.3 MB
Stars 3
Forks 2
Watchers 13
Open issues 158
Dependencies 0
Contributors 8
Tags 122
Created
Last updated
Last pushed

Top Contributors See all

rbf Marc-Elian Begin sixsq-hudson schaubl Charles (Cal) Loomis Stephane Tavera Konstantin Skaburskas Louise

Recent Tags See all

v3.48 March 23, 2018
v3.47 March 09, 2018
v3.46 February 26, 2018
v3.45 February 02, 2018
v3.44 January 24, 2018
v3.43 January 21, 2018
v3.42 January 12, 2018
v3.41 December 02, 2017
v3.40 November 10, 2017
v3.39 November 04, 2017
v3.38 October 13, 2017
v3.37 October 01, 2017
v3.36 September 08, 2017
v3.35 August 25, 2017
v3.34 August 11, 2017

Something wrong with this page? Make a suggestion

Last synced: 2017-01-29 19:22:24 UTC

Login to resync this repository