diff --git a/backend/config/azureConfig.js b/backend/config/azureConfig.js index c31a71e..e9162f7 100644 --- a/backend/config/azureConfig.js +++ b/backend/config/azureConfig.js @@ -6,38 +6,66 @@ const { SearchIndexClient, SearchClient, AzureKeyCredential } = require("@azure/ const { OpenAIClient, AzureKeyCredential: OAICredential } = require("@azure/openai"); const { DocumentAnalysisClient } = require("@azure/ai-form-recognizer"); +function warnMissing(service, vars) { + console.warn( + `[azureConfig] ${service} client not configured — missing env var(s): ${vars.join(", ")}. ` + + `Routes that depend on this service will return 503 until the vars are set.` + ); +} + // ─── Blob ───────────────────────────────────────────────────────────────────── -const blobServiceClient = BlobServiceClient.fromConnectionString( - process.env.AZURE_STORAGE_CONNECTION_STRING -); -const containerClient = blobServiceClient.getContainerClient( - process.env.AZURE_BLOB_CONTAINER_NAME || "raw-documents" -); +let blobServiceClient = null; +let containerClient = null; +if (process.env.AZURE_STORAGE_CONNECTION_STRING) { + blobServiceClient = BlobServiceClient.fromConnectionString(process.env.AZURE_STORAGE_CONNECTION_STRING); + containerClient = blobServiceClient.getContainerClient(process.env.AZURE_BLOB_CONTAINER_NAME || "raw-documents"); +} else { + warnMissing("Blob Storage", ["AZURE_STORAGE_CONNECTION_STRING"]); +} // ─── Search ─────────────────────────────────────────────────────────────────── -const searchIndexClient = new SearchIndexClient( - process.env.AZURE_SEARCH_ENDPOINT, - new AzureKeyCredential(process.env.AZURE_SEARCH_KEY) -); -const searchClient = new SearchClient( - process.env.AZURE_SEARCH_ENDPOINT, - process.env.AZURE_SEARCH_INDEX || "documents", - new AzureKeyCredential(process.env.AZURE_SEARCH_KEY) -); +let searchIndexClient = null; +let searchClient = null; +if (process.env.AZURE_SEARCH_ENDPOINT && process.env.AZURE_SEARCH_KEY) { + searchIndexClient = new SearchIndexClient( + process.env.AZURE_SEARCH_ENDPOINT, + new AzureKeyCredential(process.env.AZURE_SEARCH_KEY) + ); + searchClient = new SearchClient( + process.env.AZURE_SEARCH_ENDPOINT, + process.env.AZURE_SEARCH_INDEX || "documents", + new AzureKeyCredential(process.env.AZURE_SEARCH_KEY) + ); +} else { + warnMissing("Azure Search", ["AZURE_SEARCH_ENDPOINT", "AZURE_SEARCH_KEY"]); +} // ─── OpenAI ─────────────────────────────────────────────────────────────────── -const openaiClient = new OpenAIClient( - process.env.AZURE_OPENAI_ENDPOINT, - new OAICredential(process.env.AZURE_OPENAI_API_KEY) -); +// Support both AZURE_OPENAI_API_KEY (Azure SDK convention) and AZURE_OPENAI_KEY (repo legacy) +const azureOpenAiKey = process.env.AZURE_OPENAI_API_KEY || process.env.AZURE_OPENAI_KEY; +let openaiClient = null; +if (process.env.AZURE_OPENAI_ENDPOINT && azureOpenAiKey) { + openaiClient = new OpenAIClient( + process.env.AZURE_OPENAI_ENDPOINT, + new OAICredential(azureOpenAiKey) + ); +} else { + warnMissing("Azure OpenAI", ["AZURE_OPENAI_ENDPOINT", "AZURE_OPENAI_API_KEY (or AZURE_OPENAI_KEY)"]); +} // ─── Document Intelligence ──────────────────────────────────────────────────── -const docIntelligenceClient = new DocumentAnalysisClient( - process.env.AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT, - new AzureKeyCredential(process.env.AZURE_DOCUMENT_INTELLIGENCE_API_KEY) -); +let docIntelligenceClient = null; +if (process.env.AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT && process.env.AZURE_DOCUMENT_INTELLIGENCE_API_KEY) { + docIntelligenceClient = new DocumentAnalysisClient( + process.env.AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT, + new AzureKeyCredential(process.env.AZURE_DOCUMENT_INTELLIGENCE_API_KEY) + ); +} else { + warnMissing("Document Intelligence", ["AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT", "AZURE_DOCUMENT_INTELLIGENCE_API_KEY"]); +} module.exports = { + blobServiceClient, containerClient, searchIndexClient, searchClient, diff --git a/backend/package-lock.json b/backend/package-lock.json index 55ff47e..e8e803e 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -9,14 +9,39 @@ "version": "1.0.0", "license": "ISC", "dependencies": { + "@azure/ai-form-recognizer": "^5.1.0", + "@azure/openai": "^2.0.0", + "@azure/search-documents": "^12.2.0", "@azure/storage-blob": "^12.31.0", "axios": "^1.13.6", "cors": "^2.8.6", "dotenv": "^17.3.1", - "express": "^5.2.1" + "express": "^5.2.1", + "multer": "^2.1.1", + "uuid": "^13.0.0" }, "devDependencies": { "nodemon": "^3.1.14" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@azure-rest/core-client": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@azure-rest/core-client/-/core-client-2.5.1.tgz", + "integrity": "sha512-EHaOXW0RYDKS5CFffnixdyRPak5ytiCtU7uXDcP/uiY+A6jFRwNGzzJBiznkCzvi5EYpY+YWinieqHb0oY916A==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.10.0", + "@azure/core-rest-pipeline": "^1.22.0", + "@azure/core-tracing": "^1.3.0", + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/@azure/abort-controller": { @@ -31,6 +56,26 @@ "node": ">=18.0.0" } }, + "node_modules/@azure/ai-form-recognizer": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@azure/ai-form-recognizer/-/ai-form-recognizer-5.1.0.tgz", + "integrity": "sha512-XH6Nyj8+F/O3fH9RhHRUSSFkYMTJrDbw8F8M2mXm8jDkE06KQL0EDD9MTN9uLf+pZiYUWsEOQD9bPnLEtoh+lQ==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-lro": "^2.2.0", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.19.0", + "@azure/core-tracing": "^1.2.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@azure/core-auth": { "version": "1.10.1", "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.10.1.tgz", @@ -176,6 +221,40 @@ "node": ">=20.0.0" } }, + "node_modules/@azure/openai": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@azure/openai/-/openai-2.0.0.tgz", + "integrity": "sha512-zSNhwarYbqg3P048uKMjEjbge41OnAgmiiE1elCHVsuCCXRyz2BXnHMJkW6WR6ZKQy5NHswJNUNSWsuqancqFA==", + "license": "MIT", + "dependencies": { + "@azure-rest/core-client": "^2.2.0", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/search-documents": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@azure/search-documents/-/search-documents-12.2.0.tgz", + "integrity": "sha512-4+Qw+qaGqnkdUCq/vEFzk/bkROogTvdbPb1fmI8poxNfDDN1q2WHxBmhI7CYwesrBj1yXC4i5E0aISBxZqZi0g==", + "license": "MIT", + "dependencies": { + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-http-compat": "^2.1.2", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-tracing": "^1.2.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", + "events": "^3.0.0", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/@azure/storage-blob": { "version": "12.31.0", "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.31.0.tgz", @@ -271,6 +350,12 @@ "node": ">= 8" } }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", + "license": "MIT" + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -361,6 +446,23 @@ "node": ">=8" } }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -436,6 +538,21 @@ "node": ">= 0.8" } }, + "node_modules/concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "engines": [ + "node >= 6.0" + ], + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" + } + }, "node_modules/content-disposition": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz", @@ -1173,6 +1290,68 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, + "node_modules/multer": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.1.1.tgz", + "integrity": "sha512-mo+QTzKlx8R7E5ylSXxWzGoXoZbOsRMpyitcht8By2KHvMbf3tjwosZ/Mu/XYU6UuJ3VZnODIrak5ZrPiPyB6A==", + "license": "MIT", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.6.0", + "concat-stream": "^2.0.0", + "type-is": "^1.6.18" + }, + "engines": { + "node": ">= 10.16.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/multer/node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/negotiator": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", @@ -1375,6 +1554,20 @@ "node": ">= 0.10" } }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -1404,6 +1597,26 @@ "node": ">= 18" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -1568,6 +1781,23 @@ "node": ">= 0.8" } }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/strnum": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.2.2.tgz", @@ -1645,6 +1875,12 @@ "node": ">= 0.6" } }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "license": "MIT" + }, "node_modules/undefsafe": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", @@ -1661,6 +1897,25 @@ "node": ">= 0.8" } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz", + "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist-node/bin/uuid" + } + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", diff --git a/backend/package.json b/backend/package.json index 7ac3673..6fdcd01 100644 --- a/backend/package.json +++ b/backend/package.json @@ -12,18 +12,20 @@ "license": "ISC", "description": "", "dependencies": { + "@azure/ai-form-recognizer": "^5.1.0", + "@azure/openai": "^2.0.0", + "@azure/search-documents": "^12.2.0", "@azure/storage-blob": "^12.31.0", "axios": "^1.13.6", "cors": "^2.8.6", "dotenv": "^17.3.1", - "express": "^5.2.1" + "express": "^5.2.1", + "multer": "^2.1.1", + "uuid": "^13.0.0" }, "devDependencies": { "nodemon": "^3.1.14" }, - "engines": { - "node": ">=20" - }, "engines": { "node": ">=20" } diff --git a/backend/routes/documents.js b/backend/routes/documents.js index b3e3fc6..9ac9483 100644 --- a/backend/routes/documents.js +++ b/backend/routes/documents.js @@ -45,6 +45,13 @@ router.post('/upload', upload.single('file'), async (req, res) => { error: "No file uploaded" }); } + + if (!blobServiceClient) { + return res.status(503).json({ + success: false, + error: "Blob Storage service is not configured. Set AZURE_STORAGE_CONNECTION_STRING in your environment." + }); + } // Upload to blob storage const containerClient = blobServiceClient.getContainerClient("raw-documents"); diff --git a/backend/server.js b/backend/server.js index 6872f07..1737cc3 100644 --- a/backend/server.js +++ b/backend/server.js @@ -4,6 +4,7 @@ const cors = require("cors"); const queryRoutes = require("./routes/query"); const auditRoutes = require("./routes/audit"); +const documentRoutes = require("./routes/documents"); const app = express(); @@ -51,10 +52,6 @@ app.get('/', (req, res) => { }); }); -// Mount routes -app.use(queryRoutes); -app.use(auditRoutes); - // Error handling middleware app.use((err, req, res, next) => { console.error(err.stack); @@ -68,8 +65,8 @@ app.use((err, req, res, next) => { const PORT = process.env.PORT || 3000; // Start server -app.listen(port, () => { - console.log(`\n🚀 Grounded Knowledge Assistant API running on port ${port}`); +app.listen(PORT, () => { + console.log(`\n🚀 Grounded Knowledge Assistant API running on port ${PORT}`); console.log(`\n📋 Available endpoints:`); console.log(` POST /query - Ask a question`); console.log(` GET /audit - View audit logs`); diff --git a/backend/services/openaiService.js b/backend/services/openaiService.js index 10196a3..3312063 100644 --- a/backend/services/openaiService.js +++ b/backend/services/openaiService.js @@ -12,6 +12,9 @@ class OpenAIService { * Generate embeddings for text */ async generateEmbedding(text) { + if (!this.client) { + throw new Error("Azure OpenAI service is not configured. Set AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_API_KEY (or AZURE_OPENAI_KEY)."); + } try { const response = await this.client.getEmbeddings( this.embeddingDeployment, @@ -28,6 +31,9 @@ class OpenAIService { * Generate a grounded answer using citations */ async generateGroundedAnswer(query, citations) { + if (!this.client) { + throw new Error("Azure OpenAI service is not configured. Set AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_API_KEY (or AZURE_OPENAI_KEY)."); + } try { // Build context from citations const context = citations.map((citation, idx) => { diff --git a/backend/services/searchService.js b/backend/services/searchService.js index dd9fa9e..9afda77 100644 --- a/backend/services/searchService.js +++ b/backend/services/searchService.js @@ -13,6 +13,9 @@ class SearchService { * @returns {Promise} Search results with metadata */ async search(query, options = {}) { + if (!this.searchClient) { + throw new Error("Azure Search service is not configured. Set AZURE_SEARCH_ENDPOINT and AZURE_SEARCH_KEY."); + } const { top = 5, skip = 0, @@ -78,6 +81,9 @@ class SearchService { * Upload documents to search index with full metadata */ async uploadDocuments(documents) { + if (!this.searchClient) { + throw new Error("Azure Search service is not configured. Set AZURE_SEARCH_ENDPOINT and AZURE_SEARCH_KEY."); + } try { const result = await this.searchClient.uploadDocuments(documents); return result; @@ -91,6 +97,9 @@ class SearchService { * Delete documents by filter */ async deleteDocuments(filter) { + if (!this.searchClient) { + throw new Error("Azure Search service is not configured. Set AZURE_SEARCH_ENDPOINT and AZURE_SEARCH_KEY."); + } try { // First search for documents to delete const searchResults = await this.searchClient.search("*", { diff --git a/package.json b/package.json index b53deaa..8d8d16a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "main": "index.js", "scripts": { "start": "node server.js", - "dev": "nodemon server.js" + "dev": "nodemon server.js", + "ingest": "npm run --prefix backend ingest" }, "keywords": [], "author": "",