In this exercise, we will run our first executors.
Now that we have our app, we can also run it using the serve
command.
Remember how the commands are structured, nx ${target} ${project}
OR nx run ${project}:${target}
Serve the app
npx nx serve movies
## OR
npx nx run movies:serve
This will start the app in development mode, and you can access it at http://localhost:4200/.
You should see something like this:
We are also able to produce a build output from our newly created app. Let's create one!
Remember how the commands are structured, nx ${target} ${project}
OR nx run ${project}:${target}
Build the app
npx nx build movies
## OR
npx nx run movies:build
You should have a dist/
folder now containing the output of the build.
- Lint the code using ESLint:
npx nx lint movies
- Run the unit tests:
npx nx test movies
- Run the E2E tests:
npx nx e2e movies-e2e
- Run the app in production mode:
npx nx serve movies
- Run the app in production mode with Vite:
npx nx run movies:serve-static