Skip to content

Commit

Permalink
Updated twitter logo to new X logo
Browse files Browse the repository at this point in the history
  • Loading branch information
biswa committed Oct 26, 2024
1 parent c906526 commit 0705aaf
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
7 changes: 4 additions & 3 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,11 @@ <h3>Follow Us <div class="underline"><span></span></div>
<a href="https://discord.com/invite/priyaghosal" target="_blank" rel="noopener noreferrer">
<i class="fab fa-discord"></i>
</a>
<a href="https://x.com/i/flow/login?redirect_after_login=%2FPriyaGhosa39968" target="_blank"
rel="noopener noreferrer">
<i class="fab fa-twitter"></i>
<a href="https://x.com/i/flow/login?redirect_after_login=%2FPriyaGhosa39968" target="_blank" rel="noopener noreferrer">
<img src="img/x-logo.png" alt="X logo" class="fab">
</a>


<a href="https://github.com/PriyaGhosal/BuddyTrail" target="_blank"
rel="noopener noreferrer">
<i class="fab fa-github"></i>
Expand Down
2 changes: 1 addition & 1 deletion backend/config/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ const connectDB = async () => {
}
};

module.exports = connectDB;
module.exports = connectDB;
32 changes: 20 additions & 12 deletions backend/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
// Import required modules
const express = require('express');
const connectDB = require('./config/db');
const authRoutes = require('./routes/authRoutes');
const cookieParser = require('cookie-parser');
const config = require('./config/config'); // Import config
const cors = require('cors'); // Import CORS
const connectDB = require('./config/db'); // Database connection
const authRoutes = require('./routes/authRoutes'); // Authentication routes
const cookieParser = require('cookie-parser'); // Middleware for parsing cookies
const config = require('./config/config'); // Config file for environment variables
const cors = require('cors'); // Middleware for Cross-Origin Resource Sharing

// Initialize express app
const app = express();

// Connect to MongoDB
connectDB();

// CORS configuration
app.use(cors({
origin: 'http://your-frontend-domain.com', // Replace with your frontend URL
credentials: true, // Allow credentials (cookies) to be sent
origin: 'http://your-frontend-domain.com', // Replace with your frontend URL
credentials: true // Allow credentials (cookies) to be sent with requests
}));

app.use(express.json());
app.use(cookieParser());
app.use('/api/auth', authRoutes);
// Middleware
app.use(express.json()); // Parse JSON bodies
app.use(cookieParser()); // Enable cookie parsing

// API routes
app.use('/api/auth', authRoutes); // Route for authentication endpoints

const PORT = config.port; // Use config for port
// Server listening on configured port
const PORT = config.port || 5000; // Use config for port, default to 5000 if undefined
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
});
10 changes: 4 additions & 6 deletions backend/package-lock.json

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

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"dotenv": "^16.4.5",
"express": "^4.21.1",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.7.2"
"mongoose": "^8.7.3"
}
}
Binary file added img/x-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2965,4 +2965,4 @@ <h2>Exclusive Deals and Offers!</h2>

</body>

</html>
</html>

0 comments on commit 0705aaf

Please sign in to comment.