Skip to content

Angular Training App - Pavel Trifonov #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f319b53
Create Github Action
tpavels May 26, 2025
7029300
Update main.yml
tpavels May 26, 2025
ba4ad76
Update main.yml
tpavels May 26, 2025
5712f88
Update main.yml
tpavels May 26, 2025
e98348d
Update main.yml
tpavels May 26, 2025
6067ee5
Update main.yml
tpavels May 26, 2025
1aeec1b
Rename deployment step in workflow from "Deploy to GitHub Pages" to "…
May 26, 2025
dcc1661
Fix GitHub token reference in deployment step
May 26, 2025
85716bd
Refactor deployment step in workflow and update Angular CLI configura…
May 26, 2025
7c0167d
Update title in index.html to "AngularTemplate1"
May 26, 2025
a0cd759
Add gbook and post components with initial templates and tests
May 26, 2025
1783db9
Update deployment action in workflow to use AhsanAyaz/angular-deploy-…
May 26, 2025
ae9d769
Update angular_dist_build_folder path in deployment workflow
May 26, 2025
bbcbd80
Add test execution step in deployment workflow
May 26, 2025
0e25c16
Merge branch 'main' into training
May 26, 2025
c6367b5
Add CI test script to package.json for headless browser testing
May 26, 2025
94b53fd
Update main.yml
tpavels May 26, 2025
26283f2
feat: Update app title and added posts feature
May 26, 2025
24aad41
Merge remote-tracking branch 'origin/main' into training
May 26, 2025
2b6289c
Update workflow to trigger on specific training branch
May 26, 2025
0f19f92
Merge branch 'main' of https://github.com/tpavels/angular-template
May 26, 2025
14b2683
Remove main branch trigger from build and deploy workflow
May 26, 2025
61e0ed0
Merge branch 'main' into training
May 26, 2025
375ab11
Update unit tests for AppComponent and PostsPageComponent; add HTTP t…
May 26, 2025
6a90673
Update postsApiUrl to use HTTPS for improved security
May 26, 2025
7211072
Add Angular Material components and update styles for improved UI
May 26, 2025
fd1d852
Refactor posts and comments modules; implement routing and state mana…
May 27, 2025
c344e04
Update styles and improve UI components; switch to indigo-pink theme,…
May 27, 2025
6ba3144
Refactor components and services to use selectSignal for state manage…
May 28, 2025
c72bc6b
Rename Gbook components to Guestbook; implement new GuestbookEdit and…
May 28, 2025
1aad1a3
Enhance comments section in post detail view; display comment count a…
May 28, 2025
05b7a68
Add environment file for development and update main.ts for productio…
May 28, 2025
a94ad7f
Refactor comments and posts state management; implement NgRx entity a…
May 28, 2025
f79bb32
Rename CommentsPageActions to CommentsComponentActions for consistenc…
May 28, 2025
88843aa
Add linter step to GitHub Actions workflow for code quality checks
May 28, 2025
d01592f
change project structure
May 28, 2025
a656ef1
Implement guestbook feature with NgRx state management, effects, and …
May 28, 2025
94e92d7
Refactor guestbook page component tests; remove unused MockStore impo…
May 28, 2025
c8b0cb7
Refactor guestbook and post services; update model imports and restru…
May 29, 2025
a76316a
Add guestbook author dialog component and service
May 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Deploy Script
on:
push:
branches:
- training

jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Adding Node.js
uses: actions/setup-node@v2
with:
node-version: 22.15.1
- name: Install Dependencies
run: npm install
- name: Run Linter
run: npm run lint
- name: Run tests
run: npm run test:ci
- name: Build Angular App
run: npm run build
- name: Deploy to Pages
uses: AhsanAyaz/angular-deploy-gh-pages-actions@v1.4.0
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
build_configuration: production
base_href: /angular-template/
deploy_branch: gh-pages
angular_dist_build_folder: dist/angular-template/browser

permissions:
contents: write

13 changes: 11 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"scripts": [],
Expand All @@ -53,6 +54,12 @@
"outputHashing": "all"
},
"development": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
}
],
"optimization": false,
"extractLicenses": false,
"sourceMap": true,
Expand Down Expand Up @@ -93,6 +100,7 @@
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.scss"
],
"scripts": []
Expand All @@ -113,6 +121,7 @@
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
],
"analytics": false
}
}
}
173 changes: 168 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,26 @@
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:ci": "ng test --no-watch --no-progress --browsers=ChromeHeadless",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@angular/animations": "^19.2.10",
"@angular/cdk": "^19.2.17",
"@angular/common": "^19.2.10",
"@angular/compiler": "^19.2.10",
"@angular/core": "^19.2.10",
"@angular/forms": "^19.2.10",
"@angular/material": "^19.2.17",
"@angular/platform-browser": "^19.2.10",
"@angular/platform-browser-dynamic": "^19.2.10",
"@angular/router": "^19.2.10",
"@ngrx/effects": "^19.2.0",
"@ngrx/entity": "^19.2.0",
"@ngrx/router-store": "^19.2.0",
"@ngrx/store": "^19.2.0",
"@ngrx/store-devtools": "^19.2.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.15.0"
Expand All @@ -45,4 +53,4 @@
"prettier": "^3.3.3",
"typescript": "~5.8.3"
}
}
}
Loading