Skip to content

Commit 7e2c8da

Browse files
GabrielViellCastilhoYgorPereira
authored andcommitted
Merge pull request #1 from Bug-Busters-F/chore/init-nest-project
Chore/init nest project
1 parent 1861d2c commit 7e2c8da

23 files changed

Lines changed: 10760 additions & 0 deletions

.github/PULL_REQUEST_TEMPLATE.MD

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Título do PR
2+
<!--
3+
Escreva aqui o nome da atividade e o número do ticket do Jira, se tiver.
4+
Exemplo:
5+
PROJ-123 - Corrige erro ao calcular total do pedido
6+
-->
7+
8+
---
9+
10+
## Tipo do PR
11+
<!--
12+
Marque apenas UMA opção que melhor descreve este PR.
13+
-->
14+
15+
- [ ] fix (correção de bug)
16+
- [ ] feature (nova funcionalidade)
17+
- [ ] refactor (refatoração sem mudança de comportamento)
18+
- [ ] chore (tarefas técnicas, melhorias internas, configs, etc.)
19+
20+
---
21+
22+
## O que foi feito nesta branch?
23+
<!--
24+
Explique de forma clara o que foi implementado ou alterado.
25+
26+
Inclua informações como:
27+
- qual problema foi resolvido
28+
- qual funcionalidade foi adicionada
29+
- quais partes do sistema foram impactados
30+
-->
31+
-
32+
-
33+
-
34+
35+
---
36+
37+
## Instruções de como testar
38+
<!--
39+
Descreva passo a passo como o revisor pode validar sua implementação.
40+
41+
Exemplo:
42+
1. Rodar a aplicação
43+
2. Acessar a rota /login
44+
3. Tentar logar com usuário inválido
45+
4. Verificar se a mensagem de erro aparece corretamente
46+
-->
47+
48+
49+
1.
50+
2.
51+
3.
52+
4.
53+
---
54+
55+
## Revisores
56+
<!--
57+
Liste as pessoas que devem revisar este PR.
58+
59+
Exemplo:
60+
@usuario1
61+
@usuario2
62+
-->
63+
- @
64+
- @
65+
- @
66+
---

.github/workflows/workflow_v1.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI Pipeline
2+
on: [pull_request, ]
3+
4+
jobs:
5+
unit-tests:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Using NodeJS
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: "22.x"
15+
16+
- name: Install packages
17+
working-directory: backend
18+
run: npm ci
19+
20+
- name: Run unit tests
21+
working-directory: backend
22+
run: npm run test
23+
24+
integration-tests:
25+
runs-on: ubuntu-latest
26+
needs: unit-tests
27+
steps:
28+
- name: Placeholder
29+
run: echo "Integration tests will be implemented later"
30+
31+
build-procces:
32+
runs-on: ubuntu-latest
33+
needs: integration-tests
34+
35+
steps:
36+
- uses: actions/checkout@v3
37+
38+
- name: Using NodeJS
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: "22.x"
42+
43+
- name: Install packages
44+
working-directory: backend
45+
run: npm ci
46+
47+
- name: Build Process
48+
working-directory: backend
49+
run: npm run build
50+
51+
52+

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# ======================
2+
# Node / NestJS
3+
# ======================
4+
node_modules/
5+
dist/
6+
build/
7+
8+
# ======================
9+
# Environment variables
10+
# ======================
11+
.env
12+
.env.*
13+
!.env.example
14+
15+
# ======================
16+
# Logs
17+
# ======================
18+
logs
19+
*.log
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# ======================
25+
# OS files
26+
# ======================
27+
.DS_Store
28+
Thumbs.db
29+
30+
# ======================
31+
# IDE / Editors
32+
# ======================
33+
.vscode/
34+
.idea/
35+
36+
# ======================
37+
# Coverage
38+
# ======================
39+
coverage/
40+
41+
# ======================
42+
# Temporary files
43+
# ======================
44+
tmp/
45+
temp/
46+
47+
# ======================
48+
# Database local
49+
# ======================
50+
*.sqlite
51+
*.db

backend/.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

backend/README.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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
32+
```
33+
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
45+
```
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).

backend/eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ['eslint.config.mjs'],
10+
},
11+
eslint.configs.recommended,
12+
...tseslint.configs.recommendedTypeChecked,
13+
eslintPluginPrettierRecommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.node,
18+
...globals.jest,
19+
},
20+
sourceType: 'commonjs',
21+
parserOptions: {
22+
projectService: true,
23+
tsconfigRootDir: import.meta.dirname,
24+
},
25+
},
26+
},
27+
{
28+
rules: {
29+
'@typescript-eslint/no-explicit-any': 'off',
30+
'@typescript-eslint/no-floating-promises': 'warn',
31+
'@typescript-eslint/no-unsafe-argument': 'warn',
32+
"prettier/prettier": ["error", { endOfLine: "auto" }],
33+
},
34+
},
35+
);

backend/nest-cli.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/nest-cli",
3+
"collection": "@nestjs/schematics",
4+
"sourceRoot": "src",
5+
"compilerOptions": {
6+
"deleteOutDir": true
7+
}
8+
}

0 commit comments

Comments
 (0)