Here are the labs for the Git repos: workshop-nx-starter
For your local repository, checkout branch m2start
:
- Create an App and a Lib
- Create a Lazy Loaded UI Lib
- Public APIs for Libs
- Run the Build Command and NPM Scripts
For your local repository, checkout branch m3start
:
- Add Subscriptions to Ticket Search Form
- Throttle Assigned to User Field and Transform
- Use SwitchMap
- Create a Ticket Timer Observable
- Track Tickets to Work With a Multi-Cast Observable
For your local repository, checkout branch m5start
:
- Create a Root State for Logs
- Refactor Tickets State to Use Key/Value Object
- Refactor Tickets State to use NgRx Entity
- Create a Feature State for Ticket Comments
Run the following command(s) in individual terminals:
npm run server
npm run customer-portal
If you already have one(s) running and you need to restart, you can stop the run with
ctrl+c
.
- Open the Customer Portal application with the browser: http://localhost:4203
Confirm the Node Server is running with browser page: http://localhost:3000/api/tickets. Use terminal command to launch the server if needed: npm run server
.
You can easily throttle the server responses with random delays using
npm run server -- -throttled
To see the server HELP page (with links), navigate to http://localhost:3000/.
Sometimes a change to TypeScript interfaces or adding new *.ts
files will not get picked up by the watch processes. In such cases, you may need to stop/restart these... if you feel your code is correct but you are getting an error.
If you already have one(s) running and you need to restart, you can stop the run with ctrl+c
.