-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jhonatan David <82552187+jotahdavid@users.noreply.github.com> Co-authored-by: MatheusDubin <matheusdsilveira@gmail.com> Co-authored-by: Gustavo Clemente <gusclms@gmail.com> Co-authored-by: kelvinsb <kelvinbr11@gmail.com> Co-authored-by: Tatiane <coelhotatiane2@gmail.com> Co-authored-by: Sombrio <sombrio@sombrasoft.dev> Co-authored-by: AlbuquerqueRafael <AlbuquerqueRafael@users.noreply.github.com> Co-authored-by: José Fagundes <fagundesjg@outlook.com> Co-authored-by: Arthur <40851238+4rthuurr@users.noreply.github.com> Co-authored-by: Giovanni Bassi <334958+giggio@users.noreply.github.com> Co-authored-by: LeoFC97 <leonardo.fc2@outlook.com> Co-authored-by: Rogério Piatek <74259272+RogerioPiatek@users.noreply.github.com> Co-authored-by: Anderson Rocha <59173445+AndersonCRocha@users.noreply.github.com> Co-authored-by: Pedro Perrone <psperrone@hotmail.com>
- Loading branch information
1 parent
375418e
commit 2954d7a
Showing
18 changed files
with
366 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Check out the source | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
# Setup node.js and cache | ||
- name: "Setup node.js" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18.x" | ||
cache: 'npm' | ||
cache-dependency-path: ./package-lock.json | ||
# Install dependencies | ||
- name: Install dependencies | ||
run: npm ci | ||
# Lint App | ||
- name: Lint App | ||
run: npm run lint:ci | ||
# Build App | ||
- name: Build App | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### 🔨 Tenho uma nova PR para vocês revisarem | ||
|
||
- 🤔 O que foi feito? | ||
> Digite aqui... | ||
|
||
### 📗 Checklist do desenvolvedor | ||
|
||
- [ ] Foi testado localmente? | ||
- [ ] Foi adicionado documentação necessária (swagger, testes e etc)? | ||
|
||
### 👀 Checklist do revisor | ||
|
||
#### Revisor 1️⃣ | ||
|
||
- [ ] Você entendeu o propósito desse PR? | ||
- [ ] Você entendeu o fluxo de negócio? | ||
- [ ] Você entendeu o que e como foi desenvolvido tecnicamente a solução? | ||
- [ ] Você analisou se os testes estão cobrindo a maioria dos casos? | ||
|
||
|
||
### 🔗 Referênia | ||
|
||
[Issue XX](https://github.com/SOS-RS/backend/issues/XX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM node:18.18 as node | ||
FROM node:18.18-alpine as node | ||
|
||
WORKDIR /usr/app | ||
|
||
COPY package.json package-lock.json ./ | ||
|
||
RUN npm install | ||
COPY . . | ||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- AlterTable | ||
ALTER TABLE "shelters" ADD COLUMN "city" TEXT, | ||
ADD COLUMN "neighbourhood" TEXT, | ||
ADD COLUMN "street" TEXT, | ||
ADD COLUMN "street_number" TEXT, | ||
ADD COLUMN "zip_code" TEXT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { createParamDecorator, ExecutionContext } from '@nestjs/common'; | ||
|
||
export const UserDecorator = createParamDecorator( | ||
(data: unknown, ctx: ExecutionContext) => { | ||
const request = ctx.switchToHttp().getRequest(); | ||
return request?.user; | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { AuthGuard } from '@nestjs/passport'; | ||
|
||
@Injectable() | ||
export class ApplyUser extends AuthGuard('jwt') { | ||
handleRequest(err: any, user: any) { | ||
if (user) return user; | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.