Title: Course Review: Monorepos - A Beginner's Guide (Udemy)
Slug: monorepos-beginners-guide-udemy-course-review
Date: 2021-12-25 11:35:00
Author: Kartones
Lang: en
Tags: Reviews, Courses, Architecture, Development, Javascript, Tools, Systems-IT
og_image: 
Description: The course 'Monorepos: A Beginner's Guide' on Udemy covers topics such as NodeJS module loading, using Yarn, package hoisting, and cross-package bin scripts. It also includes a bonus lesson on using Lerna. The course is concise and focused on NodeJS and Yarn, but the author has concerns about the initial approach of manually placing modules in the `node_modules` folder.


### Review

[Monorepos: A Beginner's Guide](https://www.udemy.com/course/monorepos-a-beginners-guide/) is a ~40 minutes 2020 small course that, despite it's catchy but generic name, really should be titled something like "**Multi-package and Monorepo NodeJS projects using Yarn**".

The topics covered are:

- Now NodeJS searches for and loads modules/packages
- Using `yarn link`
- Using yarn workspaces
- package hoisting when using workspaces
- cross-package bin scripts
- Using `yarn workspace`
- A bonus 10 minutes lesson about [lerna](https://lerna.js.org/), covering the basic commands, scoped packages and npm publishing of monorepo packages using the tool

Although you can apply the same principles and actions with [npm](https://www.npmjs.com/) 7+, all examples are explained and performed via [yarn](https://yarnpkg.com/).

It is a very compact course, very very focused on node + yarn, but if that's what you search for, it is concise, direct to the point and for once, quicker than reading through official documentation. 

My only concern is that the initial approach of manually placing modules inside `node_modules` folder, although if mentioned as a sub-optimal solution, it is a really ugly workaround 😵‍💫 (the author even provides instructions to properly un-gitignore and commit the hack!)
