An example of casibase-python-sdk with FastAPI and Vue.js.
Example uses Casibase to manage records, stores, and tasks. You need to have a Casibase instance running and configure the credentials properly.
git clone https://github.com/casibase/casibase-python-example
cd casibase-python-example
- Configure Casibase SDK credentials in
config.py
:
class Config:
SDK = CasibaseSDK(
endpoint="https://demo-admin.casibase.com",
client_id="af6b5aa958822fb9dc33",
client_secret="8bc3010c1c951c8d876b1f311a901ff8deeb93bc",
organization_name="casbin",
application_name="app-casibase",
)
-
Install Python dependencies:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Build the frontend:
cd web npm run build
-
Install frontend dependencies:
cd web npm install
-
Start the production server:
python main.py
The application will be served at http://localhost:8000