Skip to content

Commit

Permalink
Updated Express to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed Nov 14, 2024
1 parent 6139a07 commit 4d6d37a
Show file tree
Hide file tree
Showing 5 changed files with 662 additions and 226 deletions.
2 changes: 1 addition & 1 deletion api/v1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:lts-slim
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --production
COPY . .
CMD ["npm", "start"]
6 changes: 1 addition & 5 deletions api/v1/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// - [ ] Changed Port
// - [ ] Changed MySQL Info and Port
// - [ ] Changed Token

// Load Our App Server Using Express
const express = require('express');
const app = express();
Expand Down Expand Up @@ -105,5 +101,5 @@ app.use((error, request, response, next) => {

// Ping @ localhost:5101
app.listen(server_port, () => {
console.log("Server is up on " + checkType.RELEASE_TYPE + " and listening on port: " + server_port);
console.log(`Server is up on ${checkType.RELEASE_TYPE} and listening on port: ${server_port}.`);
});
2 changes: 0 additions & 2 deletions api/v1/middleware/check-type.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require('dotenv').config();

const RELEASE_TYPE = process.env.API_REQUEST_LOCATION;

if (RELEASE_TYPE === undefined) {
Expand Down
Loading

0 comments on commit 4d6d37a

Please sign in to comment.