Skip to content

Commit

Permalink
Merge pull request #7 from fac31/mergeFix2
Browse files Browse the repository at this point in the history
Merge fix2
  • Loading branch information
RGHANILOO authored Jun 3, 2024
2 parents 202aa8b + 12cede1 commit 1c4d3f9
Show file tree
Hide file tree
Showing 20 changed files with 2,111 additions and 1,716 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ node_modules
/playwright-report/
/blob-report/
/playwright/.cache/

{
"liveServer.settings.port": 5501
}
.vscode
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {
// "liveServer.settings.port": 5501
// }
2 changes: 2 additions & 0 deletions middlewares/logger.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const colors = require('colors');

const logger = (req, res, next) => {
const colorMethods = {
GET: "green",
Expand Down
11 changes: 11 additions & 0 deletions middlewares/session.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// const express = require("express");
const session = require("express-session");

const sessionMiddleware = session({
secret: "r4D4R",
resave: false,
saveUninitialized: true,
cookie: { secure: false },
});

module.exports = sessionMiddleware;
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
"author": "",
"license": "ISC",
"dependencies": {
"@geoapify/geocoder-autocomplete": "^2.0.1",
"axios": "^1.7.2",
"colors": "^1.4.0",
"connect": "^3.7.0",
"dotenv": "^16.4.5",
"express": "^4.19.2"
"ejs": "^3.1.10",
"express": "^4.19.2",
"express-session": "^1.18.0",
"node-fetch": "^2.7.0"
},
"devDependencies": {
"@eslint/js": "^9.3.0",
Expand All @@ -24,6 +30,7 @@
"eslint": "^9.3.0",
"globals": "^15.3.0",
"nodemon": "^3.1.0",
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"unsplash-js": "^7.0.19"
}
}
Loading

0 comments on commit 1c4d3f9

Please sign in to comment.