askrobots / dbbasic Public

Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.

0 downloads

dbbasic/deploy_dbbasic.sh
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add DBBasic crate engine logo and update README 0d628db 1 year, 2 months ago History
deploy_dbbasic.sh · 1.1 KB · 44 lines
1#!/bin/bash
2
3# DBBasic Deployment Script
4# Deploy DBBasic with Presentation Layer
5
6echo "======================================"
7echo "🚀 DBBasic Deployment"
8echo "======================================"
9
10# Check Python version
11python_version=$(python3 --version 2>&1 | grep -Po '(?<=Python )\d+\.\d+')
12echo "✓ Python version: $python_version"
13
14# Install dependencies
15echo "Installing dependencies..."
16pip install -r requirements.txt
17
18# Generate UI files
19echo "Generating UI with Presentation Layer..."
20python generate_all_ui.py
21
22# Run tests
23echo "Running tests..."
24python -m pytest tests/ -v
25
26# Start services
27echo "Starting DBBasic services..."
28python launch_dbbasic.py &
29
30echo ""
31echo "======================================"
32echo "✅ Deployment Complete!"
33echo "======================================"
34echo ""
35echo "Services running at:"
36echo " • Dashboard: http://localhost:8004"
37echo " • Data Service: http://localhost:8005"
38echo " • AI Services: http://localhost:8003"
39echo " • Event Store: http://localhost:8006"
40echo ""
41echo "Press Ctrl+C to stop all services"
42
43# Wait for interrupt
44wait