Project

General

Profile

« Previous | Next » 

Revision 54830

updated readme file and changed project name

View differences:

modules/uoa-repository-dashboard-gui/trunk/angular.json
3 3
  "version": 1,
4 4
  "newProjectRoot": "projects",
5 5
  "projects": {
6
    "oa-repo-manager-ui": {
6
    "uoa-repository-manager-ui": {
7 7
      "root": "",
8 8
      "sourceRoot": "src",
9 9
      "projectType": "application",
......
13 13
        "build": {
14 14
          "builder": "@angular-devkit/build-angular:browser",
15 15
          "options": {
16
            "outputPath": "dist/oa-repo-manager-ui",
16
            "outputPath": "dist/uoa-repository-manager-ui",
17 17
            "index": "src/index.html",
18 18
            "main": "src/main.ts",
19 19
            "polyfills": "src/polyfills.ts",
......
54 54
        "serve": {
55 55
          "builder": "@angular-devkit/build-angular:dev-server",
56 56
          "options": {
57
            "browserTarget": "oa-repo-manager-ui:build",
57
            "browserTarget": "uoa-repository-manager-ui:build",
58 58
            "port": 4200,
59 59
            "host": "localhost"
60 60
          },
61 61
          "configurations": {
62 62
            "production": {
63
              "browserTarget": "oa-repo-manager-ui:build:production"
63
              "browserTarget": "uoa-repository-manager-ui:build:production"
64 64
            }
65 65
          }
66 66
        },
67 67
        "extract-i18n": {
68 68
          "builder": "@angular-devkit/build-angular:extract-i18n",
69 69
          "options": {
70
            "browserTarget": "oa-repo-manager-ui:build"
70
            "browserTarget": "uoa-repository-manager-ui:build"
71 71
          }
72 72
        },
73 73
        "test": {
......
101 101
        }
102 102
      }
103 103
    },
104
    "oa-repo-manager-ui-e2e": {
104
    "uoa-repository-manager-ui-e2e": {
105 105
      "root": "e2e/",
106 106
      "projectType": "application",
107 107
      "architect": {
......
109 109
          "builder": "@angular-devkit/build-angular:protractor",
110 110
          "options": {
111 111
            "protractorConfig": "e2e/protractor.conf.js",
112
            "devServerTarget": "oa-repo-manager-ui:serve"
112
            "devServerTarget": "uoa-repository-manager-ui:serve"
113 113
          },
114 114
          "configurations": {
115 115
            "production": {
116
              "devServerTarget": "oa-repo-manager-ui:serve:production"
116
              "devServerTarget": "uoa-repository-manager-ui:serve:production"
117 117
            }
118 118
          }
119 119
        },
......
129 129
      }
130 130
    }
131 131
  },
132
  "defaultProject": "oa-repo-manager-ui"
132
  "defaultProject": "uoa-repository-manager-ui"
133 133
}
modules/uoa-repository-dashboard-gui/trunk/package.json
1 1
{
2
  "name": "oa-repo-manager-ui",
2
  "name": "uoa-repository-manager-ui",
3 3
  "version": "0.0.0",
4 4
  "scripts": {
5 5
    "ng": "ng",
modules/uoa-repository-dashboard-gui/trunk/Dockerfile
2 2

  
3 3
COPY nginx.conf /etc/nginx/nginx.conf
4 4
#COPY index.html /usr/share/nginx/html/
5
COPY dist/oa-repo-manager-ui/      /usr/share/nginx/html
5
COPY dist/uoa-repository-manager-ui/      /usr/share/nginx/html
6 6
#COPY assets/    /usr/share/nginx/html/assets
7 7

  
8 8
EXPOSE 80
modules/uoa-repository-dashboard-gui/trunk/src/app/app.component.spec.ts
22 22
    const fixture = TestBed.createComponent(AppComponent);
23 23
    fixture.detectChanges();
24 24
    const compiled = fixture.debugElement.nativeElement;
25
    expect(compiled.querySelector('h1').textContent).toContain('Welcome to oa-repo-manager-ui!');
25
    expect(compiled.querySelector('h1').textContent).toContain('Welcome to uoa-repository-manager-ui!');
26 26
  }));
27 27
});
modules/uoa-repository-dashboard-gui/trunk/package-lock.json
1 1
{
2
  "name": "oa-repo-manager-ui",
2
  "name": "uoa-repository-manager-ui",
3 3
  "version": "0.0.0",
4 4
  "lockfileVersion": 1,
5 5
  "requires": true,
modules/uoa-repository-dashboard-gui/trunk/e2e/src/app.e2e-spec.ts
9 9

  
10 10
  it('should display welcome message', () => {
11 11
    page.navigateTo();
12
    expect(page.getParagraphText()).toEqual('Welcome to oa-repo-manager-ui!');
12
    expect(page.getParagraphText()).toEqual('Welcome to uoa-repository-manager-ui!');
13 13
  });
14 14
});
modules/uoa-repository-dashboard-gui/trunk/README.md
1
# OaRepoManagerUi
1
# UOA Repository Manager UI
2 2

  
3
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.8.
3
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.8 (Angular version 6.1.10).
4 4

  
5
## Development server
5
## Minimum requirements for installing and building the project
6 6

  
7
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.
7
[Node.js](https://nodejs.org/en/) version 8.x or 10.x.<br>
8
[npm client](https://docs.npmjs.com/cli/install) command line interface (it is installed with Node.js by default).
8 9

  
9
## Code scaffolding
10
## Installing the project
10 11

  
11
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`.
12
After checking out (or updating) the repository enter the created folder and run `npm ci`.
13
This will install the exact versions of the dependencies as mentioned in the `package-lock.json` file (inside the root folder).
12 14

  
13
## Build
15
## Build for production
14 16

  
15
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.
17
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.
16 18

  
17
## Running unit tests
19
## Deploy project to nginx server
18 20

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

  
29
## Other topics  
30
### Development server
31

  
32
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.<br>
33
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).
34

  
35
### Code scaffolding
36

  
37
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`.
38

  
39
### Running unit tests
40

  
19 41
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20 42

  
21
## Running end-to-end tests
43
### Running end-to-end tests
22 44

  
23 45
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24 46

  
25
## Further help
47
### Further help
26 48

  
27 49
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

Also available in: Unified diff