Skip to content

Latest commit

 

History

History
104 lines (77 loc) · 2.66 KB

File metadata and controls

104 lines (77 loc) · 2.66 KB

LEGO Control Center

Web UI to interact with Pybricks Hubs and its connected motors and sensors. More info here: https://github.com/orgs/pybricks/discussions/2553#discussion-9359219

banner

Development

General Setup

# Install dependencies
yarn install
# Start development server
yarn dev

Windows-Specific Setup Guide

Detailed instructions

This describes how to set up a development environment for LEGO Control Center on Windows.

Prerequisites

Note: Users are responsible for installing and maintaining all prerequisite software.

  • Download only from official sources.
  • This project and its maintainers are not responsible for issues arising from third-party software installations.
  • Before you begin, you'll need to install the following software:

1. Node.js Download and install Node.js from the official website:

  • Visit: https://nodejs.org/
  • Download the LTS (Long Term Support) version
  • Run the installer with default settings
  • This will also install npm (Node Package Manager)
  • Other required packages will be installed and / or updated.

To verify installation, open Command Prompt or PowerShell and run:

node --version
npm --version

2. Yarn Package Manager After installing Node.js, install Yarn globally:

npm install -g yarn

Verify installation:

yarn --version

3. Git Download and install Git for Windows:

Verify installation:

git --version

Setting Up the Project

Step 1: Clone the Repository Open Command Prompt or PowerShell and navigate to your desired project location:

cd C:\Users\YourUsername\Projects
git clone https://github.com/thomasbrus/lego-control-center.git
cd lego-control-center

Step 2: Install Dependencies Install all project dependencies using Yarn:

yarn install

This process may take a few minutes as it downloads all required packages.

Step 3: Start the Development Server Launch the development server:

yarn dev

The application will start and display a local URL (typically http://localhost:5173). Open this URL in your browser to access the application.

Requirements:

The requirements for this app are the same as for code.pybricks.com.

See the documentation: https://pybricks.com/learn/getting-started/what-do-you-need/#choosing-a-device-for-programming

Note:

The Move Hub is not supported as it does not support the REPL due to memory limitations.