python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Setting DEBUG to True will enable the FastHtml auto-reload and live reloading the browser on changes.
export DEBUG=True
By default the PocketBase instance will be accessed at http://localhost:8090. If you want to change this, you can set the PB_BASE_URL environment variable.
export PB_BASE_URL=https://my-pb-backend.pockethost.io
python app/main.py
- Navigate to http://localhost:5001
- You should be redirected to /login
- Login with one of your users that exist in your PocketBase
userscollection
Customize for your own use case. By default this example is authenticating with the users collection in PocketBase. You can change this to authenticate with a different collection, as well as the data that is stored in the session that represent the authenticated user.