The guide assumes you have a
build folder with your static app and have the Deta CLI installed.
Create a directory
static-app and change the current directory to it.
build folder into the
main.py file with the following snippet:
We are mounting the build folder, and serving the files using
Now create a
requirements.txt with the following lines:
Here is a look at the folder structure at the end:
Deploy your application with
We now have a static web application running on Deta using a simple python snippet.
If you visit the
endpoint shown in the output (your endpoint will be different from this one) in your browser, you should see your application.