Skip to content

Setting up a dev environment

To contribute to the scouting app, you will need to set up your machine for development.

We use a Dev Container (a feature of VS Code) to simplify setup. You only need to clone the repo, start VS Code, and launch the Dev Container. All necessary tools (Node.js, pnpm, Java, Firebase, etc.) are pre-installed in the container.

The following steps are required once to prepare your machine.

Windows Subsystem for Linux (WSL) allows you to run a Linux environment on Windows.

  • Open PowerShell or Command Prompt as Administrator and run:
    Terminal window
    wsl --install
  • Restart your computer when prompted.
  • After restarting, a Linux terminal will open. Follow the prompts to set a username and password.
  1. Download and install Docker Desktop for Windows.
  2. During installation, ensure the WSL 2 based engine is enabled (it usually is by default).
  3. Once installed, start Docker Desktop and ensure it is running.
  1. Download and install Visual Studio Code.
  2. Open VS Code and install the Dev Containers extension (published by Microsoft).

Once your machine is prepared, follow these steps to start developing.

Open your WSL terminal (e.g., Ubuntu) and run:

Terminal window
# Install git if not already present
sudo apt update && sudo apt install -y git
# Clone the repository
git clone https://github.com/2702rebels/scouting-app.git
cd scouting-app
# Open in VS Code
code .

When VS Code opens, it will detect the Dev Container configuration. Click Reopen in Container in the pop-up notification at the bottom-right.

The first time you do this, it will take a few minutes to build the container image.

Once the Dev Container is running (indicated by Dev Container: Typescript-Node in the bottom-left corner of VS Code), open a terminal in VS Code and run:

Terminal window
# Install project dependencies
pnpm install
# Start the development servers
pnpm dev

The application will be available at http://localhost:12702 (or the port specified in the terminal output).