-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a028194
commit 66afde5
Showing
33 changed files
with
828 additions
and
179 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 |
---|---|---|
@@ -1,9 +1,38 @@ | ||
# Git | ||
/.git | ||
/.gitignore | ||
|
||
# GitHub | ||
/.github | ||
/.husky | ||
/.vscode | ||
|
||
# Build | ||
/dist | ||
/dist-lint | ||
/localstack | ||
/node_modules | ||
/coverage | ||
|
||
# DevTools | ||
/.husky | ||
/.vscode | ||
/localstack | ||
/.czrc | ||
/.editorconfig | ||
/.eslintrc.js | ||
/.lintstagedrc | ||
/.nvmrc | ||
/jest.config.json | ||
/LICENSE | ||
/redocly.yaml | ||
|
||
# Env | ||
.env.* | ||
!.env.docker | ||
!/prisma/.env | ||
|
||
# Deploy | ||
/appspec.yml | ||
|
||
# Unnecessary | ||
/openapi | ||
/scripts | ||
/testes |
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ lerna-debug.log* | |
.env | ||
.env.* | ||
!.env.example | ||
!/prisma/.env | ||
|
||
# Temp | ||
/tmp | ||
|
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 |
---|---|---|
|
@@ -44,7 +44,7 @@ services: | |
ports: | ||
- 3000:3000 | ||
env_file: | ||
- .env | ||
- .env.docker | ||
volumes: | ||
- ./:/app/ | ||
networks: | ||
|
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,18 +1,17 @@ | ||
#!/usr/bin/env bash | ||
bucket1="las-musas-public" | ||
bucket2="las-musas-private" | ||
bucket1="econominhas-public" | ||
bucket2="econominhas-private" | ||
|
||
##buckets verification | ||
if awslocal s3 ls "s3://$bucket1" 2>/dev/null; then | ||
echo "[INFO] $bucket1 bucket already exists" | ||
else | ||
awslocal s3 mb s3://$bucket1 | ||
echo "[INFO] $bucket1 created" | ||
echo "[INFO] $bucket1 bucket already exists" | ||
else | ||
awslocal s3 mb s3://$bucket1 | ||
echo "[INFO] $bucket1 created" | ||
fi | ||
|
||
if awslocal s3 ls "s3://$bucket2" 2>/dev/null; then | ||
echo "[INFO] $bucket2 bucket already exists" | ||
else | ||
awslocal s3 mb s3://$bucket2 | ||
echo "[INFO] $bucket2 created" | ||
echo "[INFO] $bucket2 bucket already exists" | ||
else | ||
awslocal s3 mb s3://$bucket2 | ||
echo "[INFO] $bucket2 created" | ||
fi |
File renamed without changes.
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,15 @@ | ||
post: | ||
tags: | ||
- Auth | ||
summary: Sign In/Up with Facebook | ||
description: | | ||
Sign Ins or Sign Ups a user using a facebook account | ||
operationId: auth-facebook | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/auth-with-external-provider.yaml | ||
required: true | ||
responses: | ||
$ref: ../../components/responses/auth.yaml |
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
"type": "git", | ||
"url": "git+https://github.com/econominhas/backend.git" | ||
}, | ||
"packageManager": "^[email protected]", | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
|
@@ -94,7 +93,7 @@ | |
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"start": "nest start", | ||
"start:docker": "nest start --watch", | ||
"start:dev": "docker compose up", | ||
"start:dev": "docker compose up --build", | ||
"start:db": "docker compose up postgres", | ||
"start:prod": "node main", | ||
"clean:docker": "docker container rm econominhas-api && docker image rm econominhas-api", | ||
|
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 @@ | ||
DATABASE_URL=postgresql://username:password@localhost:5432/database?schema=public |
5 changes: 5 additions & 0 deletions
5
prisma/migrations/20240410001429_add_facebook_to_providers/migration.sql
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,5 @@ | ||
-- AlterEnum | ||
ALTER TYPE "sign_in_provider_enum" ADD VALUE 'FACEBOOK'; | ||
|
||
-- AlterTable | ||
ALTER TABLE "sign_in_providers" ALTER COLUMN "refresh_token" DROP NOT 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import { type Account } from "@prisma/client"; | |
|
||
export const EMAIL_TEMPLATES = { | ||
MAGIC_LINK_LOGIN: { | ||
from: "", | ||
from: "[email protected]", | ||
title: "", | ||
body: "", | ||
}, | ||
|
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,20 @@ | ||
import { Module } from "@nestjs/common"; | ||
import { ConfigModule } from "@nestjs/config"; | ||
import axios from "axios"; | ||
|
||
import { DayJsAdapterModule } from "../dayjs/dayjs.module"; | ||
|
||
import { FacebookAdapterService } from "./facebook.service"; | ||
|
||
@Module({ | ||
imports: [DayJsAdapterModule, ConfigModule], | ||
providers: [ | ||
{ | ||
provide: "axios", | ||
useValue: axios, | ||
}, | ||
FacebookAdapterService, | ||
], | ||
exports: [FacebookAdapterService], | ||
}) | ||
export class FacebookAdapterModule {} |
Oops, something went wrong.