A Minimap Sample LFE+YAWS Web Application
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
priv
src
.gitignore
Makefile
README.md
lfe.config
rebar.config
rebar.lock

README.md

lfeyawsmini

A Minimal Sample LFE+YAWS Web Application

Contents

Introduction

This is a quick and super-minimal demonstration application built using YAWS and LFE, with additional supporting libraries.

Dependencies

This demo assumes you have the following installed on your system:

  • Erlang
  • build-essential or the equivalent developer tools (including autotools, make, and gcc)
  • Any system-specific YAWS dependencies (e.g., libpam0g-dev on Ubuntu)
  • rebar3

Starting

To run the sample LFE/YAWS app, just do:

$ make run

This will download and build the dependencies as well as attempt to compile YAWS for you. If you are not running on Linux, this may not work and you may need to swtch to _build/default/lib/yaws, scan the READMEs and then build.

After a successful make run you will see output like the following:

=INFO REPORT==== 21-Apr-2016::17:28:59 ===
yaws debug:Running with id="lfeyawsmini"
Running with debug checks turned on (slower server)
Logging to directory "/home/oubiwann/lab/lfe/lfeyawsmini/log"

=INFO REPORT==== 21-Apr-2016::17:28:59 ===
Ctlfile : /home/oubiwann/.yaws/yaws/lfeyawsmini/CTL

=INFO REPORT==== 21-Apr-2016::17:28:59 ===
Yaws: Listening to 0.0.0.0:5099 for <1> virtual servers:
 - http://localhost:5099 under /home/oubiwann/lab/lfe/lfeyawsmini/priv/www

Viewing

Once your make run command shows YAWS starting, it's ready to view in a browser: