# Web Cookbook

### &#x20;What is it? <a href="#what-is-it" id="what-is-it"></a>

The web cookbook demonstrates how to perform REST calls, create proxy requests, utilize blocking calls against databases (H2 in this project), and serve files from disk and the resource folder.

### Preview <a href="#preview" id="preview"></a>

[![](https://objectcomputing.github.io/Pronghorn/assets/images/webcookbook.jpeg)](https://objectcomputing.github.io/Pronghorn/assets/images/webcookbook.jpeg)

### What do I need? <a href="#what-do-i-need" id="what-do-i-need"></a>

* Java 8
* Maven

### How to use it <a href="#how-to-use-it" id="how-to-use-it"></a>

Download the source code on the GitHub page ([here](https://github.com/oci-pronghorn/WebCookbook/)). Extract the source and place it somewhere with write and read access on your system.

Run the following command in the directory with your source:

```
mvn install
```

This will install all the required dependencies. You can then run the cookbook.

Use the “files” or “-f” arguments to specify a folder where your web files are located. By default, it uses the `www` folder in your `HOME` environment folder.
