-
Notifications
You must be signed in to change notification settings - Fork 160
00 Up and Running
Chris T edited this page Oct 30, 2019
·
6 revisions
create-nx-workspace angular-core-workshop --preset=empty --cli=angular --npmScope=workshop
ng add @nrwl/angular
ng generate @nrwl/angular:application dashboard
Follow the prompts:
Which stylesheet format would you like to use?
SASS(.scss)
Would you like to configure routing for this application?
y
ng add @angular/material
Follow the prompts:
Choose a prebuilt theme name, or "custom" for a custom theme:
Deep Purple/Amber
Set up HammerJS for gesture recognition?
Yes
Set up browser animations for Angular Material?
Yes
ng serve
ng serve --project=dashboard
ng test
ng build
- Install server dependencies
npm i --save-dev concurrently json-server jsonwebtoken`
- Update package.json
"server:all": "concurrently \"npm run server\" \"ng serve\" \"npm run server:auth\"",
"server:auth": "node server/server.js",
- Copy
styles.scss
fromRESOURCES
intoapp/dashboard/src
- Copy
assets
fromRESOURCES
intoapp/dashboard/src