Skip to content

Commit

Permalink
Merge pull request #37 from amosproj/feat/xd-13
Browse files Browse the repository at this point in the history
Feat/xd 13 and sprint materials
  • Loading branch information
shahraz1998 authored May 8, 2024
2 parents 27a4abf + 1215786 commit dafb3e6
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Deliverables/sprint-02/feature-board.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Title,URL,Assignees,Status,Labels
Create T-shirt mockup,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/2,lamara11,Feature Archive,"topic: documentation 📝, type: feature ✨"
Design and upload team logo,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/1,shahraz1998,Feature Archive,"topic: documentation 📝, type: feature ✨"
Research of fundamentals,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/3,"HaruspexSan, PatrickSchm1dt, Sabo2k",Feature Archive,"topic: backend, topic: documentation 📝, topic: frontend, topic: Tool 🔧, type: feature ✨"
Software architecture document,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/7,Sabo2k,Sprint Backlog,"🟧 priority: high, Est Size: L, topic: documentation 📝, type: feature ✨"
Fill in the bill of materials,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/8,Hydraneut,Sprint Backlog,"🟧 priority: high, Est Size: S, topic: documentation 📝"
GitHub Pipelines,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/10,"KonsumGandalf, Persists",Awaiting Review,"🟨 priority: medium, Est Size: S, topic: CI/CD, type: feature ✨"
Nx Setup,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/12,"KonsumGandalf, Persists",Awaiting Review,"🟧 priority: high, Est Size: M, type: feature ✨"
Config service for NEST,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/14,"KonsumGandalf, Persists",In Progress,"🟧 priority: high, Est Size: M, topic: backend, type: feature ✨"
Config based service implementation in Angular,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/13,"IngoSternberg, KonsumGandalf, PatrickSchm1dt",In Progress,"🟧 priority: high, Est Size: M, topic: frontend, type: feature ✨"
Setup Development Environment,https://github.com/amosproj/amos2024ss01-xcelerator-demo-app/issues/9,,Product Backlog,"🟧 priority: high, Est Size: M, topic: backend, topic: CI/CD, topic: frontend, topic: Tool 🔧, type: feature ✨"
Binary file added Deliverables/sprint-02/feature-board.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Deliverables/sprint-02/planning-documents.pdf
Binary file not shown.
8 changes: 7 additions & 1 deletion apps/frontend/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@
"maximumError": "4kb"
}
],
"outputHashing": "all"
"outputHashing": "all",
"fileReplacements": [
{
"replace": "apps/frontend/src/environments/environment.ts",
"with": "apps/frontend/src/environments/environment.prod.ts"
}
]
},
"development": {
"buildOptimizer": false,
Expand Down
13 changes: 13 additions & 0 deletions apps/frontend/src/environments/EnvironmentData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { InjectionToken } from '@angular/core';

import { environment } from './environment';

export interface EnvironmentData {
production: boolean;
apiUrl: string;
}

export const ENVIRONMENT = new InjectionToken<EnvironmentData>('ENVIRONMENT', {
providedIn: 'root',
factory: () => environment as EnvironmentData,
});
4 changes: 4 additions & 0 deletions apps/frontend/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const environment = {
production: true,
apiUrl: 'https://test.prod.de',
};
4 changes: 4 additions & 0 deletions apps/frontend/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const environment = {
production: false,
apiUrl: 'https://test.dev.de',
};
16 changes: 16 additions & 0 deletions apps/frontend/src/services/environment.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';

import { EnvironmentService } from './environment.service';

describe('EnvironmentService', () => {
let service: EnvironmentService;

beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(EnvironmentService);
});

it('should be created', () => {
expect(service).toBeTruthy();
});
});
16 changes: 16 additions & 0 deletions apps/frontend/src/services/environment.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Injectable } from '@angular/core';

import { environment } from '../environments/environment';

@Injectable({
providedIn: 'root',
})
export class EnvironmentService {
public getProduction(): boolean {
return environment.production;
}

public getApiUrl(): string {
return environment.apiUrl;
}
}

0 comments on commit dafb3e6

Please sign in to comment.