{"id":17948783,"url":"https://github.com/zeeshandev15/Discover-players-Full-Stack-App","last_synced_at":"2025-10-01T16:31:39.331Z","repository":{"id":259492445,"uuid":"874032183","full_name":"Hi-Dear-486/Discover-players-Full-Stack-App","owner":"Hi-Dear-486","description":"Discover Players is a full-stack app built with Next.js , React, and Tailwind CSS, enabling users to explore and connect with athletes across various sports. It leverages Firebase for real-time data management and NextAuth for secure authentication, ensuring a seamless experience. The responsive design allows easy access on all devices, making it","archived":false,"fork":false,"pushed_at":"2024-11-01T15:20:58.000Z","size":1196,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T01:55:32.591Z","etag":null,"topics":["firebase","googlecloud","next-js","nextauth","react","reacthookform","tailwind-css","yup-validation"],"latest_commit_sha":null,"homepage":"https://discover-players-full-stack-app.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hi-Dear-486.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T06:23:41.000Z","updated_at":"2024-11-01T15:21:02.000Z","dependencies_parsed_at":"2024-12-16T17:46:15.834Z","dependency_job_id":"491429c8-5e1d-4160-a6fa-57d71735bc06","html_url":"https://github.com/Hi-Dear-486/Discover-players-Full-Stack-App","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"87ea06595bbe3a50cf728edde7d86db6ea4b9060"},"previous_names":["hi-dear-486/discover-players-full-stack-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hi-Dear-486%2FDiscover-players-Full-Stack-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hi-Dear-486%2FDiscover-players-Full-Stack-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hi-Dear-486%2FDiscover-players-Full-Stack-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hi-Dear-486%2FDiscover-players-Full-Stack-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hi-Dear-486","download_url":"https://codeload.github.com/Hi-Dear-486/Discover-players-Full-Stack-App/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234883315,"owners_count":18901365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","googlecloud","next-js","nextauth","react","reacthookform","tailwind-css","yup-validation"],"created_at":"2024-10-29T09:09:50.348Z","updated_at":"2025-10-01T16:31:39.326Z","avatar_url":"https://github.com/Hi-Dear-486.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n    \u003ca href=\"https://github.com/zeeshan-develop/Discover-players-Full-Stack-App\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://github.com/zeeshan-develop/Discover-players-Full-Stack-App/blob/master/discover%20player%20app.png\" alt=\"Project Banner\"\u003e\n    \u003c/a\u003e\n  \u003cbr /\u003e\n\n  \u003cdiv\u003e\n  \u003cimg\n  src=\"https://img.shields.io/badge/Next.js-0070F3?style=for-the-badge\u0026logo=next.js\u0026logoColor=white\"\n  alt=\"Next.js\"\n/\u003e\n\u003cimg src=\"https://img.shields.io/badge/-NextAuth-259DFF?style=for-the-badge\u0026logo=auth0\u0026logoColor=white\" alt=\"NextAuth\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/-Google_Cloud-4285F4?style=for-the-badge\u0026logo=google-cloud\u0026logoColor=white\" alt=\"Google Cloud\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/-Tailwind_CSS-38B2AC?style=for-the-badge\u0026logo=tailwind-css\u0026logoColor=white\" alt=\"Tailwind CSS\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/-React_Hook_Form-EC5990?style=for-the-badge\u0026logo=reacthookform\u0026logoColor=white\" alt=\"React Hook Form\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/-Yup-8A2BE2?style=for-the-badge\u0026logoColor=white\" alt=\"Yup\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/-Firebase-FFCA28?style=for-the-badge\u0026logo=firebase\u0026logoColor=white\" alt=\"Firebase\" /\u003e\n\n  \u003c/div\u003e\n\n  \u003ch3 align=\"center\"\u003eDiscover players\u003c/h3\u003e\n\u003c/div\u003e\n\n## 📋 \u003ca name=\"table\"\u003eTable of Contents\u003c/a\u003e\n\n1. 🤖 [Introduction](#introduction)\n2. ⚙️ [Tech Stack](#tech-stack)\n3. 🔋 [Features](#features)\n4. 🤸 [Quick Start](#quick-start)\n5. 🕸️ [Snippets (Code to Copy)](#snippets)\n6. 🔗 [Assets](#links)\n7. 🚀 [More](#more)\n\n## \u003ca name=\"introduction\"\u003e🤖 Introduction\u003c/a\u003e\n\nThis project allows users to find and connect with nearby players by creating posts. The app ensures secure authentication using Google OAuth and manages user-generated content efficiently.\n\nIf you're getting started and need assistance or face any bugs, join our active Discord community with over **34k+** members. It's a place where people help each other out.\n\n\u003ca href=\"https://discord.com/invite/n6EdbFJ\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/sujatagunale/EasyRead/assets/151519281/618f4872-1e10-42da-8213-1d69e486d02e\" /\u003e\u003c/a\u003e\n\n## \u003ca name=\"tech-stack\"\u003e⚙️ Tech Stack\u003c/a\u003e\n\n- **Frontend:** React, Next.js, Tailwind CSS  \n- **Authentication:** NextAuth (Google OAuth)  \n- **Database \u0026 Storage:** Firebase  \n- **Forms \u0026 Validation:** React Hook Form, Yup  \n- **Hosting \u0026 Cloud:** Google Cloud, Vercel  \n\n## \u003ca name=\"features\"\u003e🔋 Features\u003c/a\u003e\n\n👉 **User Authentication**: Google OAuth via NextAuth.\n\n👉 **Post Creation**: Users can create and manage posts.\n\n👉 **Secure \u0026 Fast**: Firebase for real-time data handling.\n\n👉 **Complete Responsiveness**: The application works seamlessly on all device types and screen sizes.\n\n👉 **Form Validation **: React Hook Form \u0026 Yup for seamless UX.\n\n\nand many more, including code architecture and reusability\n\n## \u003ca name=\"quick-start\"\u003e🤸 Quick Start\u003c/a\u003e\n\nFollow these steps to set up the project locally on your machine.\n\n**Prerequisites**\n\nMake sure you have the following installed on your machine:\n\n- [Git](https://git-scm.com/)\n- [Node.js](https://nodejs.org/en)\n- [Yarn](https://www.yarnpkg.com/) (Package Manager)\n\n**Cloning the Repository**\n\n```bash\ngit clone https://github.com/zeeshan-develop/Discover-players-Full-Stack-App.git\ncd  ./\n```\n\n**Installation**\n\nInstall the project dependencies using yarn:\n\n```bash\nyarn add\n```\n\n**Set Up Environment Variables**\n\nCreate a new file named `.env` in the root of your project and add the following content:\n\n```env\n# googleCloud\nGOOGLE_Client_ID=\nGOOGLE_CLIENT_SECRET=\n\n# firebase\nNEXT_PUBLIC_FIREBASE_API_KEY=\nNEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=\nNEXT_PUBLIC_FIREBASE_PROJECT_ID=\nNEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=\nNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=\nNEXT_PUBLIC_FIREBASE_APP_ID=\n\n# nextauth\nNEXTAUTH_SECRET=\nNEXTAUTH_URL=\n```\n\nReplace the placeholder values with your actual TMDB credentials. You can obtain these credentials by signing up on the [Google Cloud Console](https://console.cloud.google.com/)\n\n\n**Running the Project**\n\n```bash\nyarn run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser to view the project.\n\n## \u003ca name=\"snippets\"\u003e🕸️ Snippets\u003c/a\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003etailwind.config.js\u003c/code\u003e\u003c/summary\u003e\n\n```javascript\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  content: [\n    \"./pages/**/*.{js,ts,jsx,tsx,mdx}\",\n    \"./components/**/*.{js,ts,jsx,tsx,mdx}\",\n    \"./app/**/*.{js,ts,jsx,tsx,mdx}\",\n    \"./node_modules/flowbite/**/*.js\",\n  ],\n  theme: {\n    extend: {\n      colors: {\n        background: \"var(--background)\",\n        foreground: \"var(--foreground)\",\n      },\n    },\n  },\n  plugins: [require(\"flowbite/plugin\")],\n};\n\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eapp/globals.css\u003c/code\u003e\u003c/summary\u003e\n\n```css\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n/* ========================================== TAILWIND STYLES */\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n:root {\n  --background: #ffffff;\n  --foreground: #171717;\n}\n\n@media (prefers-color-scheme: dark) {\n  :root {\n    --background: #0a0a0a;\n    --foreground: #ededed;\n  }\n}\n\nbody {\n  color: var(--foreground);\n  background: var(--background);\n  font-family: Arial, Helvetica, sans-serif;\n}\n\n@layer utilities {\n  .text-balance {\n    text-wrap: balance;\n  }\n}\n\n}```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eapp/shared/Data.js\u003c/code\u003e\u003c/summary\u003e\n\n```javascript\nimport cricket from \"@/images/cricket.png\";\nimport pingpong from \"@/images/pingpong.png\";\nimport puzzle from \"@/images/puzzle.jpg\";\nimport trekking from \"@/images/trikking.png\";\nimport Badminton from \"@/images/badminton.jpeg\";\nimport Football from \"@/images/football.jpg\";\nexport const GameListsData = [\n  { id: 1, name: \"Badminton\", image: Badminton },\n  { id: 2, name: \"Cricket\", image: cricket },\n  { id: 3, name: \"PingPong\", image: pingpong },\n  { id: 4, name: \"Puzzle\", image: puzzle },\n  { id: 5, name: \"Trekking\", image: trekking },\n  { id: 6, name: \"FootBall\", image: Football },\n];\n\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003eapp/shared/FirebaseConfig.js\u003c/code\u003e\u003c/summary\u003e\n\n```javascript\nimport { initializeApp } from \"firebase/app\";\nconst firebaseConfig = {\n  apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,\n  authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,\n  projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,\n  storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,\n  messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,\n  appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,\n};\n\n// Initialize Firebase\nconst app = initializeApp(firebaseConfig);\n\nexport default app;\n\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003econtext/PostsContext.js\u003c/code\u003e\u003c/summary\u003e\n\n```javascript\n\"use client\";\nimport React, {\n  createContext,\n  useContext,\n  useState,\n  useEffect,\n  useCallback,\n} from \"react\";\nimport { getFirestore, collection, getDocs } from \"firebase/firestore\";\nimport app from \"../shared/FirebaseConfig\";\nimport Swal from \"sweetalert2\";\n\nconst PostsContext = createContext();\n\nexport const PostsProvider = ({ children }) =\u003e {\n  const [posts, setPosts] = useState([]);\n  const db = getFirestore(app);\n\n  const getPost = useCallback(async () =\u003e {\n    try {\n      const querySnapshot = await getDocs(collection(db, \"posts\"));\n      const postsArray = [];\n\n      querySnapshot.forEach((doc) =\u003e {\n        postsArray.push({ id: doc.id, ...doc.data() });\n      });\n\n      setPosts(postsArray);\n    } catch (error) {\n      Swal.fire({\n        icon: \"error\",\n        title: \"Error getting documents\",\n        text: error.message,\n        confirmButtonText: \"Ok\",\n      });\n    }\n  }, [db]);\n\n  useEffect(() =\u003e {\n    getPost();\n  }, [getPost]);\n\n  const postData = {\n    posts,\n    getPost,\n  };\n\n  return (\n    \u003cPostsContext.Provider value={{ ...postData }}\u003e\n      {children}\n    \u003c/PostsContext.Provider\u003e\n  );\n};\n\nexport const usePosts = () =\u003e {\n  return useContext(PostsContext);\n};\n```\n\n\u003c/details\u003e\n\n## \u003ca name=\"links\"\u003e🔗 Assets\u003c/a\u003e\n\nPublic assets used in the project can be found [here](https://github.com/zeeshan-develop/Discover-players-Full-Stack-App/tree/master/images)\n\n## \u003ca name=\"more\"\u003e🚀 More\u003c/a\u003e\n\n**Advance your skills with Next.js**\n\nEnjoyed creating this project? Dive deeper  for a richer learning adventure. They're packed with detailed explanations, cool features, and exercises to boost your skills. Give it a go!\n\n\u003ca href=\"https://github.com/Hi-Dear-486/Projects-Gallery-Tool\" target=\"_blank\"\u003e\n\u003cimg src=\"https://github.com/Hi-Dear-486/Projects-Gallery-Tool/blob/master/Untitled%20design.png\" alt=\"Project Banner\"\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n#\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshandev15%2FDiscover-players-Full-Stack-App","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeeshandev15%2FDiscover-players-Full-Stack-App","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshandev15%2FDiscover-players-Full-Stack-App/lists"}