Skip to content

dgwyer/fasthtml-tut

 
 

Repository files navigation

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

About

Code to go with beginner FastHTML tutorial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.7%
  • Jupyter Notebook 48.5%
  • Shell 0.8%