Skip to content

Commit

Permalink
rishit
Browse files Browse the repository at this point in the history
  • Loading branch information
polty-rishit committed Jan 30, 2025
1 parent cd80081 commit 5e9c2aa
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 4 deletions.
12 changes: 10 additions & 2 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
MONGO_URL = "" # Paste your MongoDB URL here for local testing
MONGO_URL = "mongodb://localhost:27017" # Paste your MongoDB URL here for local testing
JWT_SECRET = "" #Paste your JWT Secret here
PORT = 5000
PORT = 5000
# const db = new pg.Client({
# user: "postgres",
# host: "localhost",
# database: "HACKATHON",
# password: "Polty@4312",
# port: 5432,
# });
# db.connect();
10 changes: 10 additions & 0 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const dotenv = require('dotenv');
const authRoutes = require('./routes/authRoutes.js')
const mongoose = require('mongoose');
const orderRoutes = require('./routes/orderRoutes.js')
// const pg=require('pg');
const productRoutes = require('./routes/productRoutes.js')
const bodyParser = require('body-parser');
const contactRoutes = require("./routes/contactUs.js")
Expand Down Expand Up @@ -33,8 +34,17 @@ app.use("/api", contactRoutes);
const PORT = process.env.PORT || 5000;
// Connect to MongoDB
const CONNECTION_URL = process.env.MONGO_URL
// const db = new pg.Client({
// user: "postgres",
// host: "localhost",
// database: "HACKATHON",
// password: "Polty@4312",
// port: 5432,
// });
// db.connect();

mongoose.connect(CONNECTION_URL , {useNewUrlParser: true, useUnifiedTopology : true})
.then(() => app.listen(PORT,() => {console.log( `server running on port ${PORT}`)}))
.catch((err) => console.log(err.message) )

;
149 changes: 148 additions & 1 deletion backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"express": "^4.21.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.7.0",
"nodemailer": "^6.9.15"
"nodemailer": "^6.9.15",
"pg": "^8.13.1"
},
"devDependencies": {
"nodemon": "^3.1.7"
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/styles/FAQ.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

@import url('https://fonts.googleapis.com/css2?family=Anton+SC&display=swap');


.faq-page {
position: relative;
height: 100vh;
Expand Down Expand Up @@ -53,6 +57,9 @@ h1 {
text-align: center;
margin-bottom: 30px;
color: #00796b;
font-family: "Anton SC", serif;
font-weight: 400;
font-style: normal;
}

.faq-item {
Expand Down Expand Up @@ -131,6 +138,7 @@ h1 {
transform: translateY(-50%);
font-size: 16px;
color: #ccc;
/* color: black; */
transition: color 0.3s ease;
}

Expand Down

0 comments on commit 5e9c2aa

Please sign in to comment.