Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Front-end application

Notifications You must be signed in to change notification settings

data4development/dataworkbench-frontend

Repository files navigation

DqfApp

This project was generated with Angular CLI version 1.7.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Run ng serve --environment sandbox to start a server with the settings in environments/environment.sandbox.ts. Make sure the environment is also declared in .angular-cli.json.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Creating and testing a Docker image

Create the docker image with

docker build -t test-me .

and then start and stop it with

# start the docker container
docker run --name test-me -d --rm -p 8123:80 test-me

# visit http://0.0.0.0:8123/iati-feedback (or the location you specified)

# stop the docker container
docker stop test-me

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.