{"id":22559807,"url":"https://github.com/taurusilver7/facebook-2.0","last_synced_at":"2026-04-14T14:31:55.562Z","repository":{"id":181445528,"uuid":"367676826","full_name":"taurusilver7/facebook-2.0","owner":"taurusilver7","description":"A next-js powered fb chat clone styled with tailwind \u0026 hosted on vercel.","archived":false,"fork":false,"pushed_at":"2021-05-30T16:53:05.000Z","size":198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T16:49:25.789Z","etag":null,"topics":["nextjs","react","tailwindcss","vercel"],"latest_commit_sha":null,"homepage":"","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/taurusilver7.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}},"created_at":"2021-05-15T16:15:00.000Z","updated_at":"2021-12-17T17:26:53.000Z","dependencies_parsed_at":"2023-07-15T16:50:59.209Z","dependency_job_id":null,"html_url":"https://github.com/taurusilver7/facebook-2.0","commit_stats":null,"previous_names":["taurusilver7/facebook-2.0"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/taurusilver7/facebook-2.0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Ffacebook-2.0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Ffacebook-2.0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Ffacebook-2.0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Ffacebook-2.0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taurusilver7","download_url":"https://codeload.github.com/taurusilver7/facebook-2.0/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Ffacebook-2.0/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31801255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["nextjs","react","tailwindcss","vercel"],"created_at":"2024-12-07T21:09:23.053Z","updated_at":"2026-04-14T14:31:55.542Z","avatar_url":"https://github.com/taurusilver7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facebook 2.0\n\n\u003e A next-js powered fb chat clone styled with tailwind \u0026 hosted on vercel.\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\n\u003e This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Setup tailwindcss\n\n- `npm install -D tailwindcss@latest postcss@latest autoprefixer@latest`\n\n- Open the ./styles/globals.css file that Next.js generates for you by default and use the @tailwind directive to include Tailwind's _base_, _components_, and _utilities_ styles, replacing the original file contents:\n\n- Next, generate your **tailwind.config.js** and **postcss.config.js** files:\n\n- In your **tailwind.config.js** file, configure the purge option with the paths to all of your pages and components so Tailwind can tree-shake unused styles in production builds:\n- `purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],`\n\n- The Image component is a webp (compressed img element) exist only in next js.\n- The source of the image is added to the configured list of host names for the next js to search the host for resource.\n- Add next.config.js to add domains to the project.\n\n## NextAuth Setup\n\n\u003e authentication for next js. It gets the session for the user on the server when server rendering.\n\n- To add NextAuth.js to a project create a file called [...nextauth].js in pages/api/auth.\n- Add authentication to a next js app using the [documentation](https://next-auth.js.org/getting-started/example)\n- The next-auth gives multiple providers for the app authentication. Check the facebook providers at [facebook developer](https://www.developer.facebook.com). Get the ID \u0026 secret from the created app in the developer site \u0026 store them as env variables.\n- Change the NEXT_AUTH_URL to the domain name of the website after deployment for redirecting the authentication to app.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\nThe pages/api/hello.js is an express api feature for the next.js project used for authentication.\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\nFACEBOOK_ID = 5807612302612692\nFACEBOOK_SECRET = 8e77f3b3b7d81f94d505aa576f19a506\nNEXT_AUTH_URL = http://localhost:3000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurusilver7%2Ffacebook-2.0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaurusilver7%2Ffacebook-2.0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurusilver7%2Ffacebook-2.0/lists"}