This repo contains the Angular Front End for the IATI Validator.
The app must be built where env.js
has the appropriate environment variables to point to the backend API
- Copy example env.js file
cp src/env.dev.js src/env.js
- Update to use the necessary variables (localhost if you're running the backend locally as well, or use dev)
- Run
npm install
to install dependencies
GitHub actions is set up to copy the following before building the Angular application. So make the appropriate changes in those files and deploy to reflect those changes.
cp src/env.dev.js src/env.js
cp src/env.prod.js src/env.js
Run npm start
for a dev server. Navigate to https://localhost:4200/
. The app will automatically reload if you change any of the source files.
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
.
Run npm run build:dev
or ng build
to build the project for development. The build artifacts will be stored in the dist/
directory. Use npm run build:prod
for a production build.
Run npm run test
to execute the unit tests via Karma.
Run npm run 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.
We have closed the following PRs as we are going to archive this repo
We have archived this and replaced it with validator-web