Skip to content

Commit f62db4d

Browse files
fix(ci): address Node 20 deprecation and frontend build peer dependencies
- Upgraded Github Actions runners in CI and deployments to node-version '22' - Appended '--legacy-peer-deps' to frontend npm ci commands in GitHub Action workflows - Restored proper index.tsx bootstrapping configuration for Angular to bypass CSS importing issues causing the loader error with Leaflet icons - Remapped leaflet assets via angular.json Co-authored-by: beginwebdev2002 <102213457+beginwebdev2002@users.noreply.github.com>
1 parent 6ab8bab commit f62db4d

167 files changed

Lines changed: 320 additions & 6063 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/README.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/instructions/README.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/prompts/README.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/backend-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
# - name: Setup Node.js
2020
# uses: actions/setup-node@v4.1.0
2121
# with:
22-
# node-version: "20"
22+
# node-version: "22"
2323
# cache: "npm" # Теперь используем только кеш npm
2424

2525
# # 2. Устанавливаем зависимости
2626
# # Используем npm ci для максимальной стабильности в CI/CD
2727
# # Флаг --legacy-peer-deps нужен для корректной работы Nx и зависимостей Angular/NestJS
2828
# - name: Install dependencies
29-
# run: npm ci --legacy-peer-deps
29+
# run: npm ci --legacy-peer-deps --legacy-peer-deps
3030

3131
# # 3. Сборка через Nx
3232
# - name: Build NestJS

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- name: Use Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: "20"
21+
node-version: "22"
2222
cache: "npm"
2323
cache-dependency-path: backend/package-lock.json
2424
- name: Install Dependencies
25-
run: npm ci
25+
run: npm ci --legacy-peer-deps
2626
- name: Build
2727
run: npm run build
2828

@@ -41,6 +41,6 @@ jobs:
4141
cache: "npm"
4242
cache-dependency-path: frontend/package-lock.json
4343
- name: Install Dependencies
44-
run: npm ci
44+
run: npm ci --legacy-peer-deps
4545
- name: Build
4646
run: npm run build -- --configuration production

.github/workflows/frontend-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - name: Setup Node.js
2727
# uses: actions/setup-node@v4.1.0
2828
# with:
29-
# node-version: "20"
29+
# node-version: "22"
3030
# cache: "npm"
3131

3232
# - name: Install Dependencies

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ dist-ssr
3333
*.njsproj
3434
*.sln
3535
*.sw?
36-
generate_readmes.js

README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

backend/README.md

Lines changed: 95 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,98 @@
1-
<!--
2-
Mavluda Beauty - Luxury Professional Documentation
3-
Generated for 100% Architectural Transparency
4-
-->
5-
[Home](../README.md) > [backend](./README.md)
6-
7-
# 📁 BACKEND Directory
8-
9-
## 🎯 PURPOSE
10-
Manages the backend module, providing robust and secure backend services for the Mavluda Beauty application.
11-
12-
## 🏗️ ARCHITECTURE
13-
```mermaid
14-
graph TD
15-
Root["📁 backend"]
16-
Root --> Sub_src["📁 src"]
17-
Root --> Sub_test["📁 test"]
18-
Root --> File__prettierrc["📄 .prettierrc"]
19-
Root --> File_eslint_config_mjs["📄 eslint.config.mjs"]
20-
Root --> File_nest_cli_json["📄 nest-cli.json"]
21-
Root --> File_package_lock_json["📄 package-lock.json"]
22-
Root --> File_package_json["📄 package.json"]
23-
Root --> File_tsconfig_build_json["📄 tsconfig.build.json"]
24-
Root --> File_tsconfig_json["📄 tsconfig.json"]
1+
<p align="center">
2+
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3+
</p>
4+
5+
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6+
[circleci-url]: https://circleci.com/gh/nestjs/nest
7+
8+
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9+
<p align="center">
10+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13+
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14+
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
15+
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
16+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
17+
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
18+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
19+
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
20+
</p>
21+
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
22+
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
23+
24+
## Description
25+
26+
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
27+
28+
## Project setup
29+
30+
```bash
31+
$ npm install
2532
```
2633

27-
## 📄 FILE REGISTRY
28-
| File Name | Type | Responsibility | Key Aliases Used |
29-
|---|---|---|---|
30-
| `.prettierrc` | Code | Core logic implementation. | - |
31-
| `eslint.config.mjs` | Code | Core logic implementation. | @eslint |
32-
| `nest-cli.json` | Configuration | Core logic implementation. | - |
33-
| `package-lock.json` | Configuration | Core logic implementation. | - |
34-
| `package.json` | Configuration | Core logic implementation. | - |
35-
| `tsconfig.build.json` | Configuration | Core logic implementation. | - |
36-
| `tsconfig.json` | Configuration | Core logic implementation. | - |
37-
38-
39-
## 🔗 DEPENDENCIES
40-
- `@eslint/js`
41-
- `eslint-plugin-prettier/recommended`
42-
- `globals`
43-
- `typescript-eslint`
44-
45-
## 🛠️ USAGE
46-
```typescript
47-
// Example placeholder for interacting with backend
48-
// Consult the individual files in the registry for specific APIs.
34+
## Compile and run the project
35+
36+
```bash
37+
# development
38+
$ npm run start
39+
40+
# watch mode
41+
$ npm run start:dev
42+
43+
# production mode
44+
$ npm run start:prod
4945
```
46+
47+
## Run tests
48+
49+
```bash
50+
# unit tests
51+
$ npm run test
52+
53+
# e2e tests
54+
$ npm run test:e2e
55+
56+
# test coverage
57+
$ npm run test:cov
58+
```
59+
60+
## Deployment
61+
62+
When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the [deployment documentation](https://docs.nestjs.com/deployment) for more information.
63+
64+
If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
65+
66+
```bash
67+
$ npm install -g @nestjs/mau
68+
$ mau deploy
69+
```
70+
71+
With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
72+
73+
## Resources
74+
75+
Check out a few resources that may come in handy when working with NestJS:
76+
77+
- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
78+
- For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
79+
- To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
80+
- Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.
81+
- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
82+
- Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
83+
- To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
84+
- Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
85+
86+
## Support
87+
88+
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
89+
90+
## Stay in touch
91+
92+
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
93+
- Website - [https://nestjs.com](https://nestjs.com/)
94+
- Twitter - [@nestframework](https://twitter.com/nestframework)
95+
96+
## License
97+
98+
Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).

0 commit comments

Comments
 (0)