-
-
Notifications
You must be signed in to change notification settings - Fork 8
Santiago seisdedos implementation #2
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
Open
SantiagoSeisdedos
wants to merge
10
commits into
nanlabs:main
Choose a base branch
from
SantiagoSeisdedos:SantiagoSeisdedosImplementation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
49d9b53
Adding root configs and base setup
santiagosphereone e722c29
feat: initial backend with Nest + Prisma setup + WebSocket
santiagosphereone 3432259
feat: backend update with AI Orchestration + AI Translations + WebSoc…
santiagosphereone 1c0ed56
feat: frontend setup + Dashboard complete flow
santiagosphereone 236ecd8
feat: Document Upload & RAG functionality
santiagosphereone c5b2283
feat: adding shadcn/ui + ux/ui fixes
santiagosphereone b0fd133
fix: websockets, real time updates
santiagosphereone f15e4f4
feat: adding multi-model + cost tracking
santiagosphereone 98cbaaa
bonus: prisma ERD
santiagosphereone 499707d
fix: docker build + type errors
santiagosphereone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,22 @@ | ||
# Database | ||
DATABASE_URL="postgresql://acme_user:acme_password@localhost:5432/acme_workflow" | ||
|
||
# Redis | ||
REDIS_URL="redis://localhost:6379" | ||
|
||
# AI API Keys | ||
OPENAI_API_KEY="" | ||
ANTHROPIC_API_KEY="" | ||
|
||
# Backend | ||
NODE_ENV="development" | ||
PORT=3001 | ||
|
||
# Frontend | ||
NEXT_PUBLIC_API_URL="http://localhost:3001" | ||
NEXT_PUBLIC_WS_URL="ws://localhost:3001" | ||
|
||
# Optional - for enhanced content generation | ||
SERPER_API_KEY="" # Get your free key here https://serper.dev/api-keys | ||
GOOGLE_CUSTOM_SEARCH_API_KEY="" | ||
GOOGLE_CUSTOM_SEARCH_ENGINE_ID="" |
This file contains hidden or 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,27 @@ | ||
# Directorios de Build | ||
.next/ | ||
|
||
# Dependencias | ||
node_modules | ||
|
||
# Variables de Entorno | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.production.local | ||
|
||
# Logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Caché de TypeScript | ||
*.tsbuildinfo | ||
|
||
# Caché del Linter | ||
.eslintcache | ||
|
||
# Archivos del Sistema Operativo | ||
.DS_Store | ||
Thumbs.db |
This file contains hidden or 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,22 @@ | ||
# Database | ||
DATABASE_URL="postgresql://acme_user:acme_password@localhost:5432/acme_workflow" | ||
|
||
# Redis | ||
REDIS_URL="redis://localhost:6379" | ||
|
||
# AI API Keys | ||
OPENAI_API_KEY="" | ||
ANTHROPIC_API_KEY="" | ||
|
||
# Backend | ||
NODE_ENV="development" | ||
PORT=3001 | ||
|
||
# Frontend | ||
NEXT_PUBLIC_API_URL="http://localhost:3001" | ||
NEXT_PUBLIC_WS_URL="ws://localhost:3001" | ||
|
||
# Optional - for enhanced content generation | ||
SERPER_API_KEY="" # Get your free key here https://serper.dev/api-keys | ||
GOOGLE_CUSTOM_SEARCH_API_KEY="" | ||
GOOGLE_CUSTOM_SEARCH_ENGINE_ID="" |
This file contains hidden or 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 @@ | ||
# Dependencias | ||
node_modules | ||
|
||
# Output de NestJS | ||
dist/ | ||
|
||
# Variables de Entorno | ||
.env | ||
.env.local | ||
|
||
# Logs | ||
npm-debug.log* | ||
yarn-error.log | ||
|
||
/generated/prisma |
This file contains hidden or 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 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Copy package files | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm ci --only=production --legacy-peer-deps | ||
|
||
# Copy source code | ||
COPY . . | ||
|
||
# Generate Prisma client | ||
RUN npx prisma generate | ||
|
||
# Build the application | ||
RUN npm run build | ||
|
||
# Expose port | ||
EXPOSE 3001 | ||
|
||
# Start the application | ||
CMD ["npm", "run", "start:prod"] |
This file contains hidden or 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 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/nest-cli", | ||
"collection": "@nestjs/schematics", | ||
"sourceRoot": "src", | ||
"compilerOptions": { | ||
"deleteOutDir": true | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Al intentar levantar locamente, me falló el compose en esta parte.
El
--only=production
provoca que no se instale @nestjs/cli (dev), entonces no existe nest para compilar. Solución: (1) quitar la flag en dev (lo que hice yo, suficiente para ambientes no productivos), o (2) usar multi-stage: compilar con dev deps y luego prunar a prod para el runtime.Ejemplo de la opción 2 (AI generated así que puede fallar):