AnswerDotAI / fasthtml-tut

Code to go with beginner FastHTML tutorial
Apache License 2.0
19 stars 4 forks source link

fasthtml-tut

NB: This tutorial was written before the first official release of FastHTML, so some things have changed a bit. We recommend instead using the up to date examples instead of this repo: https://github.com/AnswerDotAI/fasthtml/tree/main/examples

Code to go with beginner FastHTML tutorial. First install fasthtml:

pip install -U python-fasthtml

Make sure you've installed the railway CLI, and logged in with:

railway login

Then, to deploy an app, cd to the directory, and run (replacing NAME with your preferred app name):

railway init -n NAME
railway up -c
railway domain
fh_railway_link
railway volume add -m /app/data

There is a shell script deploy.sh in the current directory with those lines, so a shortcut is to just call this from the app's directory:

../deploy.sh