Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/import csv #130

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_
SECRET_KEY=

HOST=::0.0.0.0
PORT=4000
PORT=4000

CSV_IMPORTER_USE_IA_TO_PREDICT_SUPPLY_CATEGORIES=false
# Opcional (Utilizado para detectar tipos de categorias ao importar abrigos)
GEMINI_API_KEY=
6 changes: 5 additions & 1 deletion .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_
SECRET_KEY=batata

HOST=::0.0.0.0
PORT=4000
PORT=4000

CSV_IMPORTER_USE_IA_TO_PREDICT_SUPPLY_CATEGORIES=false
# Opcional (Utilizado para detectar tipos de categorias ao importar abrigos)
GEMINI_API_KEY=
20 changes: 20 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare global {
declare namespace NodeJS {
export interface ProcessEnv {
TZ?: string;
DB_HOST: string;
DB_PORT: string;
DB_DATABASE_NAME: string;
DB_USER: string;
DB_PASSWORD: string;
DATABASE_URL: string;
SECRET_KEY: string;
HOST: string;
PORT: string;
CSV_IMPORTER_USE_IA_TO_PREDICT_SUPPLY_CATEGORIES: boolean;
GEMINI_API_KEY?: string;
}
}
}

export {};
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config: Config = {
'^src/(.*)$': '<rootDir>/$1',
'^@/(.*)$': '<rootDir>/$1',
'^test/(.*)$': '<rootDir>/../$1',
'^examples/(.*)$': '<rootDir>/../test/examples/$1',
},
testEnvironment: 'node',
};
Expand Down
221 changes: 218 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading