Table of Contents generated with DocToc
This repository contains the completed FOAM cooking recipe database application from the FOAM tutorial. It serves as a reference for those who wish to explore the finished code without following the tutorial hands-on.
The full tutorial has been moved to the main FOAM3 repository:
If you want to learn FOAM by building the application from scratch, follow the tutorial there. You'll start with an empty repository and build up the application step by step.
If you only wish to run and explore the completed application, follow these steps:
You need Java, Node.js and Maven installed in your environment. Should you need to install them, helpful tips can be found in the FOAM installation instructions.
Clone this repository, then add FOAM as a submodule:
git submodule add git@github.com:kgrgreer/foam3.git
git submodule update --init --recursive --rebase --force
Install the generic npm packages that FOAM depends on:
cd foam3/
./build.sh --install
cd ../
./build.sh -Jdemo
Open your application in the web browser at http://localhost:8080/. Use one of the following credentials:
# administrator - full access
user: admin
password: badpassword
# regular non-privileged user - can only interact with Recipes
user: demo
password: demopassword
Important
To stop the FOAM server, type CTRL+C twice.