From c4b6c9a78b7f7a53762bb9a9a3d89f0628710c88 Mon Sep 17 00:00:00 2001 From: underdorff18 Date: Fri, 16 Jun 2023 19:01:24 -0400 Subject: [PATCH] Separated webserver and excel reader services into different directories --- {JS => ExcelReader}/Inventory/1000.xlsx | Bin {JS => ExcelReader}/Inventory/1001.xlsx | Bin {JS => ExcelReader}/Inventory/1234.xlsx | Bin {JS => ExcelReader}/dbtools.js | 0 {JS => ExcelReader}/excelreader.js | 0 {JS => ExcelReader}/system.js | 0 {JS => Webserver}/index.js | 3 ++- 7 files changed, 2 insertions(+), 1 deletion(-) rename {JS => ExcelReader}/Inventory/1000.xlsx (100%) rename {JS => ExcelReader}/Inventory/1001.xlsx (100%) rename {JS => ExcelReader}/Inventory/1234.xlsx (100%) rename {JS => ExcelReader}/dbtools.js (100%) rename {JS => ExcelReader}/excelreader.js (100%) rename {JS => ExcelReader}/system.js (100%) rename {JS => Webserver}/index.js (78%) diff --git a/JS/Inventory/1000.xlsx b/ExcelReader/Inventory/1000.xlsx similarity index 100% rename from JS/Inventory/1000.xlsx rename to ExcelReader/Inventory/1000.xlsx diff --git a/JS/Inventory/1001.xlsx b/ExcelReader/Inventory/1001.xlsx similarity index 100% rename from JS/Inventory/1001.xlsx rename to ExcelReader/Inventory/1001.xlsx diff --git a/JS/Inventory/1234.xlsx b/ExcelReader/Inventory/1234.xlsx similarity index 100% rename from JS/Inventory/1234.xlsx rename to ExcelReader/Inventory/1234.xlsx diff --git a/JS/dbtools.js b/ExcelReader/dbtools.js similarity index 100% rename from JS/dbtools.js rename to ExcelReader/dbtools.js diff --git a/JS/excelreader.js b/ExcelReader/excelreader.js similarity index 100% rename from JS/excelreader.js rename to ExcelReader/excelreader.js diff --git a/JS/system.js b/ExcelReader/system.js similarity index 100% rename from JS/system.js rename to ExcelReader/system.js diff --git a/JS/index.js b/Webserver/index.js similarity index 78% rename from JS/index.js rename to Webserver/index.js index dd48cd0..f15a4b3 100644 --- a/JS/index.js +++ b/Webserver/index.js @@ -1,6 +1,7 @@ const express = require('express', '4.17.1'); const fs = require('fs'); -dbtools = require('./dbtools'); +const Path = require('path'); +dbtools = require(Path.join(__dirname, '..', 'ExcelReader', 'dbtools.js')); const app = express(); const port = 3000;