This project was generated with Angular CLI version 10.0.2.
- Install Node.js
- Install Angular CLI:
npm install -g @angular/cli
npm install --save-dev @angular-devkit/build-angular
- Include all required node modules in the project
Note not
npm installso we are using a consistent set of versions of modules
npm ci
ng buildng serve
- Install Node.js
- Install Angular CLI (second line may be required also)
npm install -g @angular/cli
npm install --save-dev @angular-devkit/build-angular
- Include all required node modules in the project
Note not npm install so we are using a consistent set of versions of modules
npm ci
We need to put the dummy_data directory onto a local server so that we can make requests for its data from our front-end server.
- Install http-server
npm install -g http-server
- In a terminal in the repository root, run:
http-server ./dummy_data --cors
There should now be a localhost directory for the data in one of the links presented (e.g. http://127.0.0.1:8080) This is emulating the data AWS bucket that we will be using
Also install docker-compose
Be careful to read if your machine is able to run Docker. Windows machines will require WSL 2, which in turn requires the May 2020 Windows 10 update:
docker-compose build
docker-compose up
Let us know if anything goes wrong!
This project's folder structure has been designed by following the angular-folder-structure project principles.
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 generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
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.