You can clone the final project to look at the source and play around with it:
It has two parts:
There is an API endpoint at
/api/create-file (that we write ourselves), and
a client side JS code that is calling the API endpoint, which is at
We are using jQuery for selecting the DOM elements and sending AJAX POST requests to the server.
The files that are created are stored under
If you are not an experienced programmer, you might want to consider using a simple form instead and creating the files on the server side similar to the TODO list app example.