Quick Start
Setup Environment
Install Node.js
Install Node.js >= 16 from here. It is recommended to use the latest LTS version.
Check the current Node.js version with the following command:
node -v
If you do not have Node.js installed in current environment, or the installed version is too low, you can use nvm to install. Here is an example of how to install via nvm:
# Install Node.js LTS
nvm install --lts
# Switch to Node.js LTS
nvm use --lts
Create a Project with Nx
The easiest way to get started with Angular and Rsbuild/Rspack tools is to use Nx.Rsbuild
Run the following commands to create a new Nx workspace and install the @nx/rsbuild plugin and @ng-rsbuild/plugin-nx plugin:
npx create-nx-workspace@latest myorg --preset apps
cd myorg
npx nx add @nx/rsbuild
npm install @ng-rsbuild/plugin-nx
npx nx g @ng-rsbuild/nx:application myapp
Run the following command to serve the application:
npx nx dev myapp
Run the following command to build the application:
npx nx build myapp