Skip to content

HTTP Server

Aymeric edited this page Jan 13, 2015 · 4 revisions

The official documentation has been moved to http://wiki.sarah.encausse.net/

.
.
.
.
.
.
.
.

Features

SARAH use ExpressJS as an HTTP server. All HTTP Access will be routes to convenient resources.

Portal

All pages relies on EJS template engine. This engine is very easy to use and close to raw HTML. All server code is done in <h1><%= title %></h1>

Layout

Pages use a common layout with predefined header/footer:

  • Bootstrap 3
  • jQuery
  • HTML5 headers
  • ...

Plugin

Plugins can provides multiple html components

Documentation

If a index.html is set then it will be displayed for plugin's documentation and available at http://127.0.0.1:8080/plugins/{plugin}

Portlets

Portlets are displayed in the portal.

  • portlet.html contains the front content (cool charts, ...)
  • portlet_back.html contains the back (buttons, forms, ...)

ThirdParty page

A plugin can also provides it's own static assets available at http://127.0.0.1:8080/assets/{plugin}/*.

And can also display blank pages (with header/footer) for files ending with .ejs. These files are available at: http://127.0.0.1:8080/plugins/{plugin}/plugin.ejs

Clone this wiki locally