A 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
test
.gitignore
Makefile
README.md
lfe.config
rebar.config
rebar.lock

README.md

lfeyawsdemo

A Sample LFE+YAWS Web Application

Contents

Introduction

This is a quick 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 will 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==== 8-Apr-2016::19:50:15 ===
yaws debug:Running with id="lfeyawsdemo"
Running with debug checks turned on (slower server)
Logging to directory "lfeyawsdemo/log"

Viewing

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

This should load up a page that looks like the following:

Docker

This project was originally derrived from the LFE/YAWS Docker sample app. However, after that code was used to generate the lfeyawsdemo project, the original was updated to use the new lfeyawsdemo project. As such, both projects now use the same code.