Skip to content

Commit

Permalink
Add dist/ directory to .gitignore, use helmet middleware in backend/a…
Browse files Browse the repository at this point in the history
…pp.js, and update backend/package.json with new dependencies
  • Loading branch information
mauriciobellon committed Apr 21, 2024
1 parent c1d18ad commit 972a315
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
tokens/
dist/
package-lock.json
5 changes: 5 additions & 0 deletions backend/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const express = require("express");
const helmet = require("helmet");

const app = express();
const port = 5001;

app.use(helmet());


app.get("/", (req, res) => {
res.send("Backend Working");
});
Expand Down
4 changes: 3 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
},
"dependencies": {
"@wppconnect-team/wppconnect": "^1.30.1",
"express": "^4.19.2"
"express": "^4.19.2",
"helmet": "^7.1.0",
"prisma": "^5.12.1"
}
}
3 changes: 1 addition & 2 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export default {
extend: {},
},
plugins: [],
}

}

0 comments on commit 972a315

Please sign in to comment.