GCBASIC Blockly Project Guide

Introduction

This guide provides a straightforward, local installation of GCBASIC for Blockly, allowing you to run it seamlessly on your system. By using Python’s built-in http.server, you can create a lightweight web server to host Blockly files without any complex setup.

The process is simple:

Follow this guide to quickly set up your GCBASIC_Blockly.html project and begin experimenting with Blockly in a controlled environment.

Table of Contents

What is Python's http.server?

Python's http.server is a built-in module that allows you to create a simple HTTP server to serve files from a directory.

Why Use a Simple HTTP Server in Python?

How to Start a Server (Install)

  1. Install Python:
  2. Copy Files to a Folder:
  3. Open a Command Prompt:

How to Start a Server (One-liner)

python -m http.server 8000

How to Access the Server (One-liner)

http://localhost:8000/GCBASIC_Blockly.html

Best Place to Download Python

The best place to download Python is the official Python website: Python.org.

Alternatively, for Windows users: Python via Microsoft Store.