-
Notifications
You must be signed in to change notification settings - Fork 65
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
Showing
59 changed files
with
243 additions
and
147 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
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,4 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", | ||
"extends": ["../../biome.json"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "taco-api", | ||
"description": "Brazilian Table of Food Composition (TACO) - GraphQL API", | ||
"version": "2.3.0", | ||
"type": "module", | ||
"homepage": "https://github.com/raulfdm/taco-api", | ||
"bugs": { | ||
"url": "https://github.com/raulfdm/taco-api/issues" | ||
}, | ||
"scripts": { | ||
"start": "NODE_ENV=production bun run src/app.ts", | ||
"dev": "NODE_ENV=development bun --watch src/app.ts", | ||
"studio": "prisma studio", | ||
"build": "bun run scripts/build.ts", | ||
"lint": "biome lint src", | ||
"lint:ci": "biome ci src", | ||
"db:migrate": "NODE_ENV=development prisma migrate dev", | ||
"db:generate": "NODE_ENV=development prisma generate", | ||
"db:seed": "NODE_ENV=development prisma db seed", | ||
"db:reset": "NODE_ENV=development prisma migrate reset", | ||
"prepare": "bun run db:generate" | ||
}, | ||
"dependencies": { | ||
"@prisma/client": "5.7.0", | ||
"cors": "2.8.5", | ||
"express": "4.18.2", | ||
"graphql": "16.8.1", | ||
"graphql-http": "1.22.0", | ||
"graphql-modules": "2.3.0", | ||
"zod": "3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@types/cors": "2.8.17", | ||
"@types/express": "4.17.21", | ||
"bun-types": "1.0.15", | ||
"csvtojson": "2.0.10", | ||
"prisma": "5.7.0", | ||
"typescript": "5.3.2" | ||
}, | ||
"packageManager": "bun@1.0.15", | ||
"engines": { | ||
"bun": "1.0.15" | ||
}, | ||
"prisma": { | ||
"seed": "bun run ./src/infrastructure/seed/index.ts", | ||
"schema": "./src/infrastructure/prisma/schema.prisma" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"compilerOptions": { | ||
"lib": [ | ||
"ESNext" | ||
], | ||
"esModuleInterop": true, | ||
"verbatimModuleSyntax": true, | ||
"isolatedModules": true, | ||
"resolveJsonModule": true, | ||
"module": "esnext", | ||
"target": "esnext", | ||
"moduleResolution": "bundler", | ||
"moduleDetection": "force", | ||
"allowImportingTsExtensions": true, | ||
"noEmit": true, | ||
"composite": true, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"downlevelIteration": true, | ||
"skipLibCheck": true, | ||
"jsx": "react-jsx", | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"allowJs": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": [ | ||
"src/*" | ||
] | ||
}, | ||
"types": [ | ||
"bun-types" // add Bun global | ||
] | ||
} | ||
} |
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,11 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", | ||
"extends": ["../../biome.json"], | ||
"files": { | ||
"ignore": [ | ||
"./docs/.vuepress/dist/**/*", | ||
"./docs/.vuepress/.temp/**/*", | ||
"./docs/.vuepress/.cache/**/*" | ||
] | ||
} | ||
} |
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,67 @@ | ||
import { defaultTheme, defineUserConfig } from "vuepress"; | ||
|
||
export default defineUserConfig({ | ||
theme: defaultTheme({ | ||
repo: "raulfdm/taco-api", | ||
locales: { | ||
"/": { | ||
navbar: [ | ||
{ | ||
text: "Versão", | ||
children: [ | ||
{ | ||
text: "Changelog", | ||
link: "https://github.com/raulfdm/taco-api/blob/main/CHANGELOG.md", | ||
}, | ||
{ | ||
text: "v1.0.0", | ||
link: "https://6447d8ec2c2ccb00085151ca--taco-api.netlify.app/", | ||
}, | ||
], | ||
}, | ||
], | ||
selectLanguageName: "Português", | ||
toggleColorMode: "Alternar modo escuro", | ||
openInNewWindow: "Abrir em nova aba", | ||
backToHome: "Voltar para página inicial", | ||
tip: "Dica", | ||
warning: "Atenção", | ||
danger: "Perigo", | ||
contributorsText: "Contribuidores", | ||
lastUpdatedText: "Atualizado pela última vez em", | ||
editLinkText: "Edite esta página", | ||
selectLanguageText: "Idiomas", | ||
}, | ||
"/en/": { | ||
navbar: [ | ||
{ | ||
text: "Version", | ||
children: [ | ||
{ | ||
text: "Changelog", | ||
link: "https://github.com/raulfdm/taco-api/blob/main/CHANGELOG.md", | ||
}, | ||
{ | ||
text: "v1.0.0", | ||
link: "https://6447d8ec2c2ccb00085151ca--taco-api.netlify.app/", | ||
}, | ||
], | ||
}, | ||
], | ||
selectLanguageName: "English", | ||
}, | ||
}, | ||
}), | ||
locales: { | ||
"/": { | ||
lang: "pt-BR", | ||
title: "TACO API", | ||
description: "Tabela Brasileira de Composição de Alimentos", | ||
}, | ||
"/en/": { | ||
lang: "en-US", | ||
title: "TACO API", | ||
description: "Brazilian Table of Food Composition", | ||
}, | ||
}, | ||
}); |
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "website", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vuepress dev docs", | ||
"build": "vuepress build docs", | ||
"lint": "biome lint docs", | ||
"lint:ci": "biome ci docs" | ||
}, | ||
"devDependencies": { | ||
"@vuepress/client": "2.0.0-rc.0", | ||
"vue": "3.3.11", | ||
"vuepress": "2.0.0-rc.0" | ||
} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.