Skip to content

google sign in feature #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Backend/.env_sample

This file was deleted.

55 changes: 52 additions & 3 deletions Backend/package-lock.json

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

1 change: 1 addition & 0 deletions Backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.21.0",
"mongodb": "^6.10.0",
"mongoose": "^8.7.0",
"multer": "^1.4.5-lts.1",
"multer-storage-cloudinary": "^4.0.0",
Expand Down
64 changes: 61 additions & 3 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"start": "vite",
"start": "vite",
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
Expand All @@ -19,13 +19,15 @@
"@fortawesome/react-fontawesome": "^0.2.2",
"@mui/icons-material": "^6.1.3",
"@mui/material": "^6.1.3",
"@react-oauth/google": "^0.12.1",
"axios": "^1.7.7",
"bcryptjs": "^2.4.3",
"chart.js": "^4.4.6",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"express": "^4.21.1",
"install": "^0.13.0",
"mongodb": "^6.10.0",
"mongoose": "^8.7.2",
"react": "^18.3.1",
"react-chartjs-2": "^5.2.0",
Expand Down
97 changes: 49 additions & 48 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import React, { useState, useEffect } from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import { Helmet } from "react-helmet";
import { GoogleOAuthProvider } from '@react-oauth/google'; // Import GoogleOAuthProvider

import Dashboard from "./pages/Dashboard";
import Analytics from "./pages/Analytics";
import Navbar from "./components/Navbar";
Expand Down Expand Up @@ -34,55 +36,54 @@ function App() {
{isPreloaderVisible ? (
<Preloader />
) : (
<Router>
<Helmet>
<title>Social Media Management System</title>
<meta
name="description"
content="Manage multiple social media accounts in one place. Analyze user interactions and post responses easily."
/>
<meta name="keywords" content="social media, management, analytics, user interactions" />
<meta name="author" content="Your Name" />

<meta property="og:title" content="Social Media Management System" />
<meta
property="og:description"
content="A comprehensive platform to manage and analyze your social media presence."
/>
<meta property="og:image" content="https://social-media-management-djkz.vercel.app/og-image.jpg" />
<meta property="og:url" content="https://social-media-management-djkz.vercel.app" />
<meta property="og:type" content="website" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Social Media Management System" />
<meta
name="twitter:description"
content="Manage your social media accounts from one place and analyze user interactions."
/>
<meta name="twitter:image" content="https://social-media-management-djkz.vercel.app/og-image.jpg" />

<meta name="robots" content="index, follow" />

<link rel="canonical" href="https://social-media-management-djkz.vercel.app" />
</Helmet>
// Wrap your entire app in GoogleOAuthProvider
<GoogleOAuthProvider clientId={process.env.REACT_APP_GOOGLE_CLIENT_ID}>
<Router>
<Helmet>
<title>Social Media Management System</title>
<meta
name="description"
content="Manage multiple social media accounts in one place. Analyze user interactions and post responses easily."
/>
<meta name="keywords" content="social media, management, analytics, user interactions" />
<meta name="author" content="Your Name" />
<meta property="og:title" content="Social Media Management System" />
<meta
property="og:description"
content="A comprehensive platform to manage and analyze your social media presence."
/>
<meta property="og:image" content="https://social-media-management-djkz.vercel.app/og-image.jpg" />
<meta property="og:url" content="https://social-media-management-djkz.vercel.app" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Social Media Management System" />
<meta
name="twitter:description"
content="Manage your social media accounts from one place and analyze user interactions."
/>
<meta name="twitter:image" content="https://social-media-management-djkz.vercel.app/og-image.jpg" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://social-media-management-djkz.vercel.app" />
</Helmet>

<Navbar />
<div className="body-content">
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/posts" element={<Publish />} />
<Route path="/analytics" element={<Analytics />} />
<Route path="/contributors" element={<Contributors />} />
<Route path="/settings" element={<Settings />} />
<Route path="/signup" element={<Signup />} />
<Route path="/login" element={<Login />} />
<Route path="/newsletter" element={<Newsletter />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
</div>
<TopButton/>
</Router>
<Navbar />
<div className="body-content">
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/posts" element={<Publish />} />
<Route path="/analytics" element={<Analytics />} />
<Route path="/contributors" element={<Contributors />} />
<Route path="/settings" element={<Settings />} />
<Route path="/signup" element={<Signup />} />
<Route path="/login" element={<Login />} />
<Route path="/newsletter" element={<Newsletter />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
</div>
<TopButton/>
</Router>
</GoogleOAuthProvider>
)}
</div>
);
Expand Down
Loading