Skip to main content

Developer Sandbox

This guide explains how to launch, develop, and share the RAD-Template inside GitHub Codespaces. GitHub Codespaces provides a fully configured cloud development environment that runs in the browser.

Prerequisites

Before you begin, ensure the following:

  • You have access to the RAD Template repository on GitHub.
  • You're signed in with a GitHub account that supports Codespaces.
  • You have basic familiarity with React / Next.js development

Launching the App in GitHub Codespaces

Open in Codespaces

  1. Go to the repository on GitHub.
  2. Click the Code button → select the Codespaces tab.
  3. Choose "Create new Codespace on main"
  4. GitHub will provision a new containerized development environment with all dependencies preinstalled.

Codespaces will initialize the project, automatically installing dependencies.

Note: Multiple developers can spin up their own Codespace simultaneously without conflicts.

Start the Application

  1. Open the integrated terminal: Ctrl+`
  2. Run
    # Run dev server
    npm run dev
  3. When the app starts, GitHub will detect a port and show a prompt "Your application is running on port 3006. Would you like to open it in the browser?"
  4. Click "Open in Browser."

This opens a live preview of the app at a Codespaces generated *.app.github.dev URL. You can make any changes, and it will reflect automatically in the forwarded address.

Sharing Your Running App

By default, RAD Template runs on port 3006.

  1. In the bottom panel of Codespaces, click Ports. You should see:
    3006 → https://<random-id-3006>.app.github.dev
  2. Make the port public
    • Right click on the port row.
    • Hover over "Port Visibility"
    • Choose Public
  3. Share the URL
    • Copy the forwarded URL ending in .app.github.dev and send it to your coworker.
    • They can open it directly in their browser and view the running app.

⚠️ Note: The shared link only works while the Codespace is running.

Codespaces Best Practices

  1. Stop Codespaces when not in use to conserve compute hours. You can find all your codespaces here: https://github.com/codespaces