backend fixes

This commit is contained in:
Jake Kasper
2025-08-21 07:35:02 -05:00
parent 3840b627dc
commit 0e55996e41
9 changed files with 145 additions and 5 deletions

18
backend/.dockerignore Normal file
View File

@@ -0,0 +1,18 @@
node_modules
.git
.gitignore
README.md
.env
.nyc_output
coverage
.coverage
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store
.vscode
.idea
*.swp
*.swo
*~

5
backend/.npmrc Normal file
View File

@@ -0,0 +1,5 @@
# Suppress funding messages
fund=false
# Suppress audit warnings during install (still run manually with npm audit)
audit=false

View File

@@ -7,7 +7,7 @@ WORKDIR /app
COPY package*.json ./
# Install dependencies
RUN npm install --only=production
RUN npm install --only=production --silent
# Copy source code
COPY . .

View File

@@ -15,7 +15,7 @@ const applicationRoutes = require('./routes/applications');
const weatherRoutes = require('./routes/weather');
const adminRoutes = require('./routes/admin');
const errorHandler = require('./middleware/errorHandler');
const { errorHandler } = require('./middleware/errorHandler');
const { authenticateToken } = require('./middleware/auth');
const app = express();