Combo Learning — 1 + 1 Offer

Roshan Khandelwal
2 min readMar 20, 2023

I watch a lot of YouTube Videos and read a lot of articles on daily.dev, & i try out a lot of these on my own.

With this series, I would be combining 2 or more of these videos / articles together into one working codebase.

I will provide links to the individual pieces of information ( with proper attribution ), as well the public GITHub repo.

It could be a shameless copy — paste, & for most part it would be the same steps that the authors take. But would outline key commands, & my additions ( links etc.. )

My initial idea was to have a separate repo for each of these articles, but instead i will be using TurboRepo, to create a MonoRepo, and add each of these projects to in there.

Workspaces are the building blocks of your monorepo. Each app and package you add to your monorepo will be inside its own workspace.

To use workspaces, you must first declare their file system locations to your package manager.

The apps folder should contain workspaces for launchable apps, such as a Next.js(opens in a new tab) or Svelte(opens in a new tab) app.

npm install turbo --global
npx create-turbo@latest
>>> Success! Created a new Turborepo at "comboLearning".
Inside that directory, you can run several commands:

npm run build
Build all apps and packages

npm run dev
Develop all apps and packages

By default this adds 2 apps and 3 packages into the repo. But i do not need any of these.

I will delete all the apps and packages inside, and add each one of my articles code into the apps.

and then for running a script inside one of my workspaces, I will use

cd <root>/apps/...
turbo run dev

This works beautifully.

--

--