# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oci-pronghorn.gitbook.io/pronghorn/chapter-6-example-projects/web-cookbook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
