Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion backend/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ ALGOLIA_INDEX_NAME=...
STRIPE_SECRET_KEY=...
STRIPE_WEBHOOK_SECRET=...
STRIPE_PRICE_ID=...
STRIPE_TEST_MODE=true
STRIPE_TEST_MODE=true

# Gemini configuration
GEMINI_API_KEY=...
4 changes: 4 additions & 0 deletions backend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ module.exports = {
transformIgnorePatterns: [
'/node_modules/'
],
testPathIgnorePatterns: [
'/node_modules/',
'/dist/'
],
verbose: true,
testTimeout: 30000
};
10 changes: 7 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "Summarizz backend server",
"main": "server.ts",
"scripts": {
"build": "tsc",
"start": "tsc && node dist/src/server.js",
"dev": "nodemon --watch 'src/**/*.ts' --exec ts-node src/server.ts",
"lint": "eslint . --ext .ts",
"test": "jest"
"test": "jest",
"test:verbose": "jest --verbose"
},
"author": "",
"license": "ISC",
Expand All @@ -32,9 +34,11 @@
},
"dependencies": {
"@algolia/client-search": "^5.20.4",
"@google/generative-ai": "^0.24.1",
"@langchain/core": "^0.3.57",
"@types/jsonwebtoken": "^9.0.7",
"algoliasearch": "^4.24.0",
"axios": "^1.7.7",
"axios": "^1.9.0",
"compression": "^1.8.0",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
Expand All @@ -46,7 +50,7 @@
"formidable": "^3.5.2",
"helmet": "^8.1.0",
"jsonwebtoken": "^9.0.2",
"stripe": "^18.0.0",
"stripe": "^18.1.1",
"winston": "^3.17.0",
"zod": "^3.24.4"
}
Expand Down
4 changes: 2 additions & 2 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import notificationRoutes from './modules/notification/routes/notification.route
import oauthRoutes from './modules/user/routes/oauth.routes';
import webhookRoutes from './modules/subscription/routes/webhook.routes';
import searchRoutes from './modules/search/routes/search.routes';
// import summarizationRoutes from './modules/ai/routes/summarization.routes';
import summarizationRoutes from './modules/ai/routes/summarization.routes';


const app = express();
Expand Down Expand Up @@ -60,7 +60,7 @@ app.use('/notification', notificationRoutes);
app.use('/oauth', oauthRoutes);
app.use('/webhook', webhookRoutes);
app.use('/search', searchRoutes);
// app.use('/ai', summarizationRoutes);
app.use('/ai', summarizationRoutes);

app.get('/', (_, res) => {
res.send('Server is Listening!');
Expand Down
11 changes: 0 additions & 11 deletions backend/src/modules/ai/.env.sample

This file was deleted.

13 changes: 0 additions & 13 deletions backend/src/modules/ai/Dockerfile

This file was deleted.

47 changes: 0 additions & 47 deletions backend/src/modules/ai/Makefile

This file was deleted.

46 changes: 0 additions & 46 deletions backend/src/modules/ai/app.py

This file was deleted.

Empty file.
52 changes: 0 additions & 52 deletions backend/src/modules/ai/blueprints/general.py

This file was deleted.

Loading