An Angular front-end for importing case definition templates in Core Case Data.
git clone https://github.com/hmcts/ccd-definition-import-web.git
cd ccd-definition-import-web
yarn install
yarn startgo to http://localhost:3452/import in your browser to start importing.
What you need to run this app:
nodeandyarn- Ensure you're running Node (
v6.x.x+) and NPM (3.x.x+) - IdAM service (key
login_urlinsrc/public/config.json) - CCD API Gateway instance (key
api_urlinsrc/public/config.json) - CCD Definition Store app (through API Gateway)
clonethe repositoryyarn installto install all dependencies
After you have installed all dependencies you can now start developing with:
yarn start
It will start a local server using webpack-dev-server which will watch, build (in-memory), and reload for you. The application can be checked at http://localhost:3452.
As an alternative, you can work using Hot Module Replacement (HMR):
yarn start:hmr
And you are all set! You can now modify your components on the fly without having to reload the entire page.
- single run:
yarn test - live mode (TDD style):
yarn test-watch
- single run:
- in a tab, if not already running!:
yarn start - in a new tab:
yarn webdriver-start - in another new tab:
yarn e2e
- in a tab, if not already running!:
- interactive mode:
- instead of the last command above, you can run:
yarn e2e-live - when debugging or first writing test suites, you may find it helpful to try out Protractor commands without starting up the entire test suite. You can do this with the element explorer.
- you can learn more about Protractor Interactive Mode here
- instead of the last command above, you can run:
To build your application, run:
yarn build
You can now go to /dist and deploy that to your server!
You can generate api docs (using TypeDoc) for your code with the following:
yarn docs
This project is based on the angular-webpack seed.
This project is licensed under the MIT License - see the LICENSE file for details.