Urban Risk Map reporting cards web-app.
Run npm run start
(for default deployment jp) or dep=cc npm run pre-build-tasks && ng serve
(for deployment with code cc) for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
export dep='xx'
& npm run add-deployment
to create the scaffolding for a new deployment.src/environments/xx
deployments/xx/
/assets
/icons
/images
/locales
/logos
/resources
angular.json
will be modified to add deployment configurations.package.json
will be modified to add build scripts.flood
.package.json
> scripts.start
, run npm start
, and open http://localhost:4200/test123/flood
in the browser.export deck=sample
& npm run add-deck
to create a route to a new cards deck.sample
in src/app/routes/decks
, including the following:
src/environments/$dep/environment.json
for the respective deployments, with the following structure:
{
"decks": [
"name": "sample",
"cards": [
"location"
]
]
}
package.json
> scripts.start
to $dep for which the environment file was modified in Step 3, run npm start
, and open http://localhost:4200/test123/sample
.export card=card_name
& npm run add-card
to create a route to a new card.card_name
to the list of 'cards' in src/environments/$dep/environment.json
for the desired deck object, eg.
{
"decks": [
"name": "flood",
"cards": [
"card_name"
]
]
}
package.json
> scripts.start
to $dep for which the environment file was modified in Step 2, run npm start
, and open http://localhost:4200/test123/flood/card_name
.Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.