Skip to content

Ashwin-op/st-pocketbase-connection

Repository files navigation

Streamlit Pocketbase Connector

This repository contains a Streamlit app that connects to a Pocketbase database.

The goal of this app is to provide a simple example of how to connect to a Pocketbase database using the Pocketbase Python Client and Streamlit's new Connection API.

How to run this app

Note: You need poetry installed to run this app. If you don't have it, you can follow the instructions here.

  1. Clone this repo.
  2. Create .streamlit/secrets.toml and add your Pocketbase Endpoint. It should look like this:
pb_url = "http://127.0.0.1:8090"
  1. Run poetry install in the root directory of this repo.
  2. Download the Pocketbase Executable from here and run it.
  3. Run poetry run streamlit run app.py in the root directory of this repo.
  4. Enjoy!

Demo

You can see a demo of this app here.

streamlit-app-2023-08-02-16-08-05.webm

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors