Skip to content

Commit

Permalink
Merge pull request #4 from dragoknite/merge/dev-to-main
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
connoro7 authored Jul 12, 2023
2 parents 59e1319 + c797630 commit 1dfb7a7
Show file tree
Hide file tree
Showing 7 changed files with 1,041 additions and 271 deletions.
580 changes: 362 additions & 218 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
"author": "",
"license": "ISC",
"dependencies": {
"chart.js": "^4.3.0",
"express": "^4.18.2",
"react": "^18.2.0",
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.2.0",
"styled-components": "^6.0.3",
"ts-node": "^10.9.1"
},
"devDependencies": {
Expand All @@ -28,6 +31,7 @@
"@types/react-dom": "^18.2.6",
"babel": "^6.23.0",
"babel-loader": "^9.1.3",
"chartjs-plugin-gradient": "^0.6.1",
"copy-webpack-plugin": "^11.0.0",
"html-webpack-plugin": "^5.5.3",
"jest": "^29.6.1",
Expand Down
5 changes: 0 additions & 5 deletions src/backend/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import express, {
} from 'express';
const app = express();
const PORT = 3000;
const path = require('path');

// parse incoming JSON
app.use(express.json());
Expand All @@ -15,10 +14,6 @@ app.get('/', (req: Request, res: Response) => {
res.send('Testing Hello, World Testing');
});

app.get('/test001', (req: Request, res: Response) => {
res.sendFile(path.join(__dirname, '../frontend/index.html'));
});

// global error middleware
const errorHandler: ErrorRequestHandler = (
err: Error,
Expand Down
Loading

0 comments on commit 1dfb7a7

Please sign in to comment.