main/ (served at war.re) and subdomains/ryan/ (served at ryan.war.re). You work on each app in isolation — there is no shared build or root-level yarn install. This guide walks you through cloning the repo, picking the app you want, and starting a development server.
Prerequisites
Before you begin, make sure you have the following tools installed:- Node.js — check with
node --version - yarn — the package manager used by both apps; check with
yarn --version - git — to clone the repository
Setup
Pick an app to work on
The monorepo contains two completely separate Next.js apps. Navigate into whichever one you want to work on:Every command you run —
yarn install, yarn dev, yarn build — must be executed from inside one of these app directories. There is no root-level install step.Install dependencies
Install the app’s dependencies with yarn:Each app has its own
package.json and yarn.lock, so dependencies are fully isolated between main/ and subdomains/ryan/.Start the development server
Start the Next.js development server:When the server is ready, you’ll see output similar to this:Open http://localhost:3000 in your browser to see the app. Both apps boot on port 3000 by default, so only run one dev server at a time unless you override the port with
yarn dev -p 3001.Both
main/ and subdomains/ryan/ use the same set of yarn commands (yarn dev, yarn build, yarn lint, and so on), but they are completely independent projects. Changes in one app have no effect on the other, and each app maintains its own lock file.