Skip to content

Commit 894e222

Browse files
committed
feat(APP): new version with Angular 15 and Bootstrap 5
1 parent 4761892 commit 894e222

89 files changed

Lines changed: 4535 additions & 3724 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,32 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
9+
**Describe the bug** A clear and concise description of what the bug is.
10+
11+
**To Reproduce** Steps to reproduce the behavior:
1212

13-
**To Reproduce**
14-
Steps to reproduce the behavior:
1513
1. Go to '...'
1614
2. Click on '....'
1715
3. Scroll down to '....'
1816
4. See error
1917

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
18+
**Expected behavior** A clear and concise description of what you expected to happen.
2219

23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
20+
**Screenshots** If applicable, add screenshots to help explain your problem.
2521

2622
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
23+
24+
- OS: [e.g. iOS]
25+
- Browser [e.g. chrome, safari]
26+
- Version [e.g. 22]
3027

3128
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
3629

37-
**Additional context**
38-
Add any other context about the problem here.
30+
- Device: [e.g. iPhone6]
31+
- OS: [e.g. iOS8.1]
32+
- Browser [e.g. stock browser, safari]
33+
- Version [e.g. 22]
34+
35+
**Additional context** Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
**Is your feature request related to a problem? Please describe.** A clear and concise description
10+
of what the problem is. Ex. I'm always frustrated when [...]
1211

13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
12+
**Describe the solution you'd like** A clear and concise description of what you want to happen.
1513

16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
14+
**Describe alternatives you've considered** A clear and concise description of any alternative
15+
solutions or features you've considered.
1816

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
17+
**Additional context** Add any other context or screenshots about the feature request here.

.github/workflows/gh-pages.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '16'
19+
20+
- name: Install dependencies
21+
run: npm i
22+
23+
- name: Run tests
24+
run: npm test
25+
26+
- name: Build
27+
run: npm run build:pages
28+
29+
- name: Deploy
30+
if: success()
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: dist
35+
enable_jekyll: true

README.md

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<h3 align="center">Angular Example App</h3>
33

44
<p align="center">
5-
Example app with Angular 14 + Angular CLI + i18n + Graphql
5+
Example app with Angular 15 + i18n + Standalone Components
66
<br>
77
<br>
88
:clap::clap::tada::tada::tada::tada::clap::clap:
99
<br>
1010
<br>
11-
Base project made with much :heart:. Contains CRUD, advanced patterns, generated library, and much more!
11+
Base project made with much :heart:. Contains CRUD, advanced patterns and much more!
1212
<br>
1313
<br>
1414
<img src="https://media.giphy.com/media/BIql9p3KQWYdjq4Sxe/giphy.gif" alt="Demo example"/>
@@ -34,45 +34,25 @@ npm start
3434

3535
## Backend
3636

37-
This project is using a real app deployed in heroku, which you can see
37+
This project is using a real app deployed in Render.com, which you can see
3838
[here](https://github.com/Ismaestro/nestjs-example-app). The server is using NestJS, Prisma,
3939
Postgres and GraphQL. Please check it out and feel free also to contribute or give me your thoughts.
4040

4141
## What's included
4242

43+
- [x] Standalone components
4344
- [x] CRUD: create, update and remove heroes with this project!
44-
- [x] Authentication with JWT tokens and [js-cookie](https://github.com/js-cookie/js-cookie)
45+
- [x] Authentication with JWT tokens (Interceptor and Guard)
4546
- [x] Internationalization with the official i18n. English and Spanish available.
4647
- [x] Lazy loading modules
47-
- [x] Service Workers enabled!
48+
- [x] Amazing reactive functionalities with [elf](https://github.com/ngneat/elf)
4849
- [x] More logical directory structure
49-
- [x] Basic example library
5050
- [x] Following the [best practices](https://angular.io/guide/styleguide)!
51-
- [x] Search bar, to look for heroes
52-
- [x] Custom loading page
53-
- [x] Example of Angular Resolver for Hero Detail
54-
- [x] Lazy loading images with [ng-lazyload-image](https://github.com/tjoskar/ng-lazyload-image)
55-
- [x] Modal and toasts (snakbar)!
56-
- [x] Scroll restoration and anchor examples
57-
- [x] Responsive layout (flex layout module)
58-
- [x] SASS (most common used functions and mixins) and BEM styles
59-
- [x] Animations with [ng-animate](https://jiayihu.github.io/ng-animate/)
60-
- [x] Angular Pipes
61-
- [x] Interceptors and Events
62-
- [x] Auth guard for some routes
63-
- [x] Modernizr (browser features detection)
64-
- [x] Browser filter (Bowser) because of IE ^^
65-
- [x] [Sentry](https://sentry.io)! (logs every error in the app)
66-
- [x] Google Tag Manager
67-
- [x] ES6 Promises and Observables
68-
- [x] End-to-end tests with Cypress App Actions. Read
69-
[this](https://applitools.com/blog/page-objects-app-actions-cypress/)!
70-
71-
### i18n
72-
73-
This project is using the official internationalization. You can navigate through every language If
74-
you want to translate the messages you can use this awesome tool,
75-
[Tiny Translator](https://martinroob.github.io/tiny-translator/en/#/translate).
51+
- [x] Responsive layout with Bootstrap 5
52+
- [x] Use of [NgOptimizedImage](https://angular.io/guide/image-directive)
53+
- [x] SASS with BEM styles
54+
- [x] Unit and integration tests with spectator (in progress)
55+
- [x] End-to-end tests with Cypress (in progress)
7656

7757
## Bugs and feature requests
7858

@@ -95,7 +75,7 @@ your feedback!
9575

9676
## Copyright and license
9777

98-
Code and documentation copyright 2021 the authors. Code released under the
78+
Code and documentation copyright 2023 the authors. Code released under the
9979
[MIT License](https://github.com/Ismaestro/angular-example-app/blob/master/LICENSE).
10080

10181
Enjoy :metal:

angular.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"glob": "**/*",
3131
"input": "src/assets/",
3232
"output": "/assets/",
33-
"ignore": ["default/*", "css/*", "js/*"]
33+
"ignore": ["base/*", "css/*", "js/*"]
3434
},
3535
{
3636
"glob": "**/*",
37-
"input": "src/assets/default",
37+
"input": "src/assets/base",
3838
"output": "/"
3939
},
4040
"src/manifest.webmanifest"
@@ -113,7 +113,7 @@
113113
"browserTarget": "angularexampleapp:build:development-es"
114114
}
115115
},
116-
"defaultConfiguration": "development"
116+
"defaultConfiguration": "development-en"
117117
},
118118
"extract-i18n": {
119119
"builder": "ng-extract-i18n-merge:ng-extract-i18n-merge",

0 commit comments

Comments
 (0)