Skip to content

Commit

Permalink
[GV-47] Remove Unused Dependencies (#11)
Browse files Browse the repository at this point in the history
* chore: remove unused dependencies in api

* feat: update dockerfile for prod

* feat: add v1 version of server to track old server

* refactor: remove deprecated routes and functions from new server

* chore: remove unused packages from website

* chore: remove unused packages from web server

* feat: update web server for prod
  • Loading branch information
Connor-Bernard authored Oct 28, 2024
1 parent 36ef36e commit 9903986
Show file tree
Hide file tree
Showing 10 changed files with 2,626 additions and 2,158 deletions.
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM node:20-alpine3.17
WORKDIR /api
ENV PATH="./node_modules/.bin:$PATH"
COPY package*.json ./
RUN npm install
RUN npm ci
COPY . .
CMD ["npm", "start"]
CMD ["node", "server.js"]
729 changes: 80 additions & 649 deletions api/package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Gradeview API Server",
"main": "server.js",
"scripts": {
"start": "nodemon server.js",
"start": "node server.js",
"dev": "nodemon server.js",
"testDb": "nodemon testDb.js",
"testApi": "nodemon testApi.js",
"server": "concurrently \"npm run start\" \"cd ../website && npm run react\""
Expand All @@ -13,19 +14,18 @@
"license": "ISC",
"type": "module",
"dependencies": {
"@google-cloud/iam-credentials": "^3.3.0",
"@google-cloud/local-auth": "^3.0.1",
"axios": "^1.2.4",
"concurrently": "^9.0.1",
"config": "^3.3.9",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"es-main": "^1.2.0",
"express": "^4.18.2",
"express-async-errors": "^3.1.1",
"express-rate-limit": "^7.2.0",
"googleapis": "^144.0.0",
"nodemon": "^3.1.7",
"google-auth-library": "^9.14.2",
"redis": "^4.6.13"
},
"devDependencies": {
"concurrently": "^9.0.1",
"nodemon": "^3.1.7"
}
}
Loading

0 comments on commit 9903986

Please sign in to comment.