Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Scale React Development with Nx

via egghead.io

Overview

On the surface, starting a project sounds easy. First you make some directories, install some dependencies, then you write some code.
But there's a bit more to it than just those three steps.
The type of project you're working on impacts the decisions you make. It gets more complicated when you're working on multiple projects that are related. For example, maybe you have a customer-facing frontend app, an admin dashboard app, and a single backend used for both.
How does this change your directory structures? How should you share code between projects? What happens when you add a Design System into the mix?
It can get hard to keep things straight in your head.
Nx is a tool that aims to solve these problems for you, whether you're working solo on a small full-stack app or on a dev team of thousands.
It's not just an opinionated folder structure. When you create an app with Nx, it generates unit and e2e test setups as well as preparing bundling and code-splitting with Webpack, and stubbing out common features like routing.
One of the coolest features of Nx is its Dependency Graph. The graph can visually show you the relationship between the parts of your application, and is optimized to ensure that compiling, testing, and linting only happens in the affected areas of your project.
In this course, Juri Strumpflohner demonstrates these features and more through the iterative creation of a React + Storybook + Express app. Don't worry if this isn't your preferred stack! Nx supports the most popular frameworks & libraries on the web.
More importantly, the focus of this course is more on the workflow than the implementation.
Watch Juri's course, and see if the Nx tooling & workflow is right for you and your team!

Syllabus

  • Create a new empty Nx Workspace
  • Generate a new React app with Nx
  • Generate new Projects for Nx with Nx Console
  • Running a React App in the Browser with Nx
  • Install and use external npm packages in an Nx Workspace
  • Add Styling to a React app inside an Nx workspace
  • Configure Assets for my React app in an Nx Workspace
  • Create a Shared React Library in an Nx Workspace
  • Generate a TypeScript library in an Nx Workspace
  • Use the Nx Dependency Graph to Visualize your Monorepo Structure
  • Create React Feature Libraries in an Nx Workspace
  • Create an Express Backend API in an Nx Workspace
  • Use Run Commands to launch the API and App of an Nx Workspace
  • Connect to an Express.js API from a React app in an Nx Workspace
  • Share and Reuse functionality with libraries in Nx
  • Share code between a React Frontend and Node.js Backend Application in Nx
  • Use Storybook to Develop React Components in Nx
  • Use Cypress and Storybook to test your React Components in Isolation
  • Run Jest tests for a React app with Nx
  • Building your React app with Nx
  • Linting a React app with Nx
  • Scale CI runs with Nx Affected Commands
  • Speed up with Nx computation Caching
  • Update your Nx workspace with Nx migrations

Taught by

Juri Strumpflohner

Reviews

4.7 rating at egghead.io based on 136 ratings

Start your review of Scale React Development with Nx

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.