# all commands used in ./client
cd client
# install tools and frontend dependencies
yarn
Create environment files for devMode
and prodMode
.
cp src/environments/environment.ts src/environments/environment.dev.ts
cp src/environments/environment.ts src/environments/environment.prod.ts
Note: These files will not be under version control but listed in .gitignore.
It is recommanded to use a server to get full access of all angular. For the other options your app should run on a server which you like.
# build, reachable on http://localhost/app/path/to/dist/
yarn build:dev
# build and starts a server, rebuild after changes, reachable on http://localhost:4200/
yarn serve:dev
# build, rebuild after changes, reachable on http://localhost/app/path/to/dist/
yarn watch:dev
# build in prodMode, compressed
yarn build:prod
# test
ng test
# e2e
ng e2e
All options have to been set in the environment files but some of them do not need to be changed.
All defaults refer to the environment file (environment.ts
), they are prepared in devMode (environment.dev.ts
).
Change for prodMode the option production
to true
.
Defines the URL to the backend.
- default:
http://localhost:8080/
- type:
string
Applicationwide title of the app, displayed in title and toolbar.
- default:
run and fun
- type:
string
The default route and the route to be redirected after a login if no route is stored or if a route does not exist.
- default:
overview
- type:
string
Defines whether the app is in production or not.
- default:
false
- type:
boolean
- values:
true
/false
Name of a build-in theme from angular-material or a custom light or dark theme.
- default:
indigo-pink
- type:
string
- values:
deeppurple-amber
/indigo-pink
/pink-bluegrey
/purple-green
/custom-light
/custom-dark
To create a custom light or dark theme just edit the colors and themes in themes.scss
.