Go to file
andreas.mantas e8e49d980f minor changes 2019-07-19 09:07:01 +00:00
e2e updated readme file and changed project name 2019-02-15 15:38:06 +00:00
src minor changes 2019-07-19 09:07:01 +00:00
.editorconfig moving angular 6 project to trunk 2019-01-07 11:10:04 +00:00
.gitignore moving angular 6 project to trunk 2019-01-07 11:10:04 +00:00
README.md updated readme file and changed project name 2019-02-15 15:38:06 +00:00
angular.json Dashboard changed and minor fixes 2019-04-02 08:31:55 +00:00
package-lock.json added package-lock to the repository 2019-02-28 15:46:20 +00:00
package.json added package-lock to the repository 2019-02-28 15:46:20 +00:00
proxy.conf.json updated production environment variables 2019-02-28 15:36:44 +00:00
tsconfig.json moving angular 6 project to trunk 2019-01-07 11:10:04 +00:00
tslint.json moving angular 6 project to trunk 2019-01-07 11:10:04 +00:00

README.md

UOA Repository Manager UI

This project was generated with Angular CLI version 6.0.8 (Angular version 6.1.10).

Minimum requirements for installing and building the project

Node.js version 8.x or 10.x.
npm client command line interface (it is installed with Node.js by default).

Installing the project

After checking out (or updating) the repository enter the created folder and run npm ci. This will install the exact versions of the dependencies as mentioned in the package-lock.json file (inside the root folder).

Build for production

Run npm run build (equivalent of ng build --prod) to build the project. The build artifacts will be stored in the dist/uoa-repository-manager-ui directory.

Deploy project to nginx server

Run tar -czvf dist.tar.gz dist/ to generate a compressed .gz file containing the built angular folder
Run scp dist.tar.gz path/to/server/ to copy the compressed file to the server.
Connect to server (ssh user@server.ip.address).
Uncompress dist.tar.gz file.
Navigate to the root folder of the server. Copy the contents of the uncompressed dist/uoa-repository-manager-ui folder into the uoa-repository-manager-dashboard folder (superuser privileges are normally required for this action).

Other topics

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 npm run start:proxy (equivalent of ng serve --proxy-config proxy.conf.json) instead, to run the project using a development proxy. To configure the proxy modify the proxy.conf.json file (inside the root folder).

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.

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.

Further help

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