Skip to content

Commit

Permalink
Migrated completely to Sequelize Models! A good number of tests are p…
Browse files Browse the repository at this point in the history
…assing again, but most still need to be repaired
  • Loading branch information
malee31 committed Oct 19, 2024
1 parent 2ca2763 commit bf1876c
Show file tree
Hide file tree
Showing 9 changed files with 1,714 additions and 676 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ testing.env
.idea/
private/
node_modules/
*.sql
*.sqlite
3 changes: 2 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ export const API_PORT = process.env.API_PORT ?? 3000;
export const MYSQL_HOST = process.env.MYSQL_HOST;
export const MYSQL_USER = process.env.MYSQL_USER;
export const MYSQL_PASSWORD = process.env.MYSQL_PASSWORD;
export const MYSQL_DATABASE = process.env.MYSQL_DATABASE;
export const MYSQL_DATABASE = process.env.MYSQL_DATABASE;
export const PRODUCTION = process.env.NODE_ENV === "production";
1,862 changes: 1,413 additions & 449 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
"homepage": "https://github.com/malee31/TimesheetManagementServer#readme",
"dependencies": {
"dotenv": "^16.4.5",
"express": "^4.21.0",
"express": "^4.21.1",
"mysql2": "^3.11.3",
"sequelize": "^6.37.4",
"sqlite3": "^5.1.7",
"uuid": "^10.0.0"
},
"devDependencies": {
"@babel/preset-env": "^7.25.7",
"@babel/preset-env": "^7.25.8",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
Expand Down
1 change: 1 addition & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let router = initialRouter;

// Allows for swapping out the router in use during runtime
app.use((req, res, next) => {
console.log(req.url)
return router(req, res, next);
});

Expand Down
Loading

0 comments on commit bf1876c

Please sign in to comment.