# How to create an HTML questionnaire that is driven by Julia in the background?

**URL:** https://discourse.julialang.org/t/how-to-create-an-html-questionnaire-that-is-driven-by-julia-in-the-background/110644
**Category:** Web Stack
**Tags:** question, website, http, html
**Created:** [February 23, 2024, 1:28pm UTC](https://discourse.julialang.org/t/how-to-create-an-html-questionnaire-that-is-driven-by-julia-in-the-background/110644 "2024-02-23T13:28:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [February 23, 2024, 1:28pm UTC](https://discourse.julialang.org/t/how-to-create-an-html-questionnaire-that-is-driven-by-julia-in-the-background/110644/1 "2024-02-23T13:28:33Z")

</div>

I want to point a site to an HTML file (using Nginx), which is a questionnaire. For example, people who open the page are asked to fill in a number randomly and click `Submit` button. Julia records the number each person fills in in the background, and displays the average of all previous submitted data on the HTML page after each person clicks the `Submit` button. I’m not sure if this idea can be realized. Thank you!

---

<div class="post-metadata">

### Author: ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)
#### Post date: [February 23, 2024, 3:32pm UTC](https://discourse.julialang.org/t/how-to-create-an-html-questionnaire-that-is-driven-by-julia-in-the-background/110644/2 "2024-02-23T15:32:05Z")

</div>

> [@WuSiren](#):
>
> I’m not sure if this idea can be realized.

You can build a Julia web service easily with HTTP.jl or Oxygen.jl. You need to configure nginx to delegate to your service. You need to decide how you’ll store the responses. There may be complications depending on how much load you expect and how resilient it must be to failure.

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [February 23, 2024, 3:41pm UTC](https://discourse.julialang.org/t/how-to-create-an-html-questionnaire-that-is-driven-by-julia-in-the-background/110644/3 "2024-02-23T15:41:01Z")

</div>

Thank you for your guidance! Forgive me for knowing so little about this subject that I do not even know how to ask it explicitly. In terms of load, the user is actually only in the single digits, which I think probably should not be a hindrance. I will look into the pkgs you recommended carefully. Thanks again! 🤝
