Skip to content

Commit a3ec61b

Browse files
committed
ftr: add scripts to run fe locally against be
TRACEFOSS-939
1 parent 8bcbea3 commit a3ec61b

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

angular.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@
9999
}
100100
]
101101
},
102+
"localBackendNoAuth": {
103+
"fileReplacements": [
104+
{
105+
"replace": "src/environments/environment.ts",
106+
"with": "src/environments/environment.localBackendNoAuth.ts"
107+
}
108+
]
109+
},
102110
"production": {
103111
"fileReplacements": [
104112
{
@@ -154,6 +162,9 @@
154162
"localBackend": {
155163
"browserTarget": "trace-x:build:dev,localBackend"
156164
},
165+
"localBackendNoAuth": {
166+
"browserTarget": "trace-x:build:dev,localBackendNoAuth"
167+
},
157168
"production": {
158169
"browserTarget": "trace-x:build:production"
159170
},

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"start:auth": "ng serve --configuration=dev,auth",
1818
"start:auth:mock": "ng serve --configuration=authMock",
1919
"start:auth:local": "ng serve --configuration=authLocal",
20+
"start:auth:localBe": "ng serve --configuration=localBackend",
21+
"start:noAuth:localBe": "ng serve --configuration=localBackendNoAuth",
2022
"env:mock": "docker-compose up",
2123
"test": "ng test",
2224
"test:ci": "ng test --no-watch --no-progress --browsers=ChromeHeadless",

src/environments/environment.localBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const environment = {
2727
authDisabled: false,
2828
mockService: false,
2929
keycloakUrl: 'https://centralidp.dev.demo.catena-x.net/auth',
30-
clientId: 'Cl10-CX-Part',
30+
clientId: 'Cl17-CX-Part',
3131
defaultRealm: 'CX-Central',
3232
apiUrl: 'http://localhost:8080/api',
3333
};
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/********************************************************************************
2+
* Copyright (c) 2022, 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3+
* Copyright (c) 2022, 2023 ZF Friedrichshafen AG
4+
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation
5+
*
6+
* See the NOTICE file(s) distributed with this work for additional
7+
* information regarding copyright ownership.
8+
*
9+
* This program and the accompanying materials are made available under the
10+
* terms of the Apache License, Version 2.0 which is available at
11+
* https://www.apache.org/licenses/LICENSE-2.0.
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
* License for the specific language governing permissions and limitations
17+
* under the License.
18+
*
19+
* SPDX-License-Identifier: Apache-2.0
20+
********************************************************************************/
21+
22+
import { _environment } from './_environment.base';
23+
24+
export const environment = {
25+
..._environment,
26+
authDisabled: true,
27+
mockService: false,
28+
apiUrl: 'http://localhost:8080/api',
29+
};

0 commit comments

Comments
 (0)