Skip to content

ifgi-sil/Spockly-Python

 
 

Repository files navigation

React + Vite

🧪 Spockly Demo — Blockly + React Starter

A minimal React app that integrates Google Blockly with Python code generation. This is the starting point for building your own Blockly-based data science environment — you’ll even be able to add your own blocks and languages like R!


🚀 Features

  • Blockly in a modern React app
  • Generates Python code from blocks

🛠️ Requirements

Make sure you have the following installed:


📦 Setup Instructions

  1. Clone the repo:

    git clone https://github.com/mariopesch/spockly-demo.git
    cd spockly-demo
2. **Install dependencies**:

   ```bash
   npm install
   ```
3. **Run the app**:

   ```bash
   npm run dev
   ```
4. **Open your browser**:
   Open [http://localhost:5173](http://localhost:5173) in your browser to see the app in action.
5. **Edit the code**:
    Open `src/App.jsx` in your code editor and start modifying the code. The app will automatically reload with your changes.
6. **Explore the Blockly editor**:

    - Drag and drop blocks to create your own workflows.
    - Click the "Generate Python Code" button to see the generated code.
    - Modify the blocks and see how the generated code changes.

About

Spatial Data Science with Blockly and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.3%
  • CSS 15.5%
  • HTML 3.2%