This is a React-Vite project. So checkout package.json for available commands.
The major purpose of this project is to provide a web playground for Apache DataFusion (uses datafusion-wasm-bindings).
Command to install dependencies:
npm installCommand to start the playground:
vite
-
Build datafusion-wasm-bindings, see instructions to generate the
pkgfolder on local. -
Add the global path alias for
pkgto your local vite.config.ts file. For example:export default defineConfig({ base: "/datafusion-wasm-playground/", resolve: { alias: { "datafusion-wasm": resolve(__dirname, "${PATH_TO_YOUR_PKG}"), }, }, plugins: [ wasm(), topLevelAwait(), ... ], });
This way your
package.jsondependencies can be alias to your local development package. -
Start the Playground!
This will generate a pkg directory containing the WASM binary and a JavaScript wrapper. You can use it as a npm package. The --target web specifies that the WASM binary is for web usage (inside browser), other options like nodejs or deno also exist if you want to use it in other environments.
- Browse the issues to find something to work on, or suggest a new feature by opening an issue.
- Fork the repository and create a new branch for your changes.
- Make your changes and ensure all tests pass.
- Commit your changes with clear messages.
- Push your branch and open a Pull Request (PR) against the main repository.
Happy Coding 🚀