This project is a web-based dashboard for interacting with DuckDB and S3. It allows users to query data stored in S3 using DuckDB's powerful SQL engine.
- DuckDB Integration: Leverages DuckDB's WebAssembly build for in-browser SQL queries.
- Log Search Dashboard: Designed for searching and analyzing log data.
- Parquet Conversion: Requires log data to be converted to
merged.parquetformat and uploaded to S3.
- Node.js and Yarn installed on your system.
- AWS credentials with access to the required S3 buckets.
-
Clone the repository:
git clone <repository-url> cd duckdb-wasm
-
Create a
.envfile with your AWS credentials:cat <<EOF > .env VITE_AWS_ACCESS_KEY_ID=<Your AWS Access Key ID> VITE_AWS_SECRET_ACCESS_KEY=<Your AWS Secret Access Key> VITE_AWS_SESSION_TOKEN=<Your AWS Session Token (if applicable)> EOF
-
Install dependencies:
yarn install
-
Start the development server:
yarn dev
src/services/duckdbService.ts: Handles DuckDB initialization and query execution.src/services/s3Service.ts: Fetches Parquet files from S3.src/Dashboard.tsx: Main dashboard component.vite.config.ts: Vite configuration file.
yarn dev: Starts the development server.yarn build: Builds the project for production.yarn preview: Previews the production build.
@duckdb/duckdb-wasm: DuckDB's WebAssembly build.@aws-sdk/client-s3: AWS SDK for S3 operations.reactandreact-dom: React library for building the UI.
- All source code in this project was generated by Copilot Agent.
This project is licensed under the MIT License.