{"id":32370550,"url":"https://github.com/mrsmart0401/nextjs_ex6_guide","last_synced_at":"2026-04-05T23:02:16.018Z","repository":{"id":289401232,"uuid":"778124295","full_name":"MrSmart0401/nextjs_ex6_guide","owner":"MrSmart0401","description":"6 projects to understand Next.js core concepts, using MongoDB, Firebase and NextAuth.js.","archived":false,"fork":false,"pushed_at":"2024-03-27T06:04:57.000Z","size":12765,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T15:31:13.299Z","etag":null,"topics":["firebase","javascript","mongodb","next","nextauth","nextjs","react","reactjs","shadcn-ui","strapi","strapi-cms","tailwind","tailwindcss","xstate"],"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/MrSmart0401.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,"zenodo":null}},"created_at":"2024-03-27T05:54:07.000Z","updated_at":"2024-03-27T06:06:39.000Z","dependencies_parsed_at":"2025-04-23T05:12:50.466Z","dependency_job_id":null,"html_url":"https://github.com/MrSmart0401/nextjs_ex6_guide","commit_stats":null,"previous_names":["stormytech317/nextjs_ex6_guide","mrsmart0401/nextjs_ex6_guide"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrSmart0401/nextjs_ex6_guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSmart0401%2Fnextjs_ex6_guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSmart0401%2Fnextjs_ex6_guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSmart0401%2Fnextjs_ex6_guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSmart0401%2Fnextjs_ex6_guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrSmart0401","download_url":"https://codeload.github.com/MrSmart0401/nextjs_ex6_guide/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSmart0401%2Fnextjs_ex6_guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31452901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["firebase","javascript","mongodb","next","nextauth","nextjs","react","reactjs","shadcn-ui","strapi","strapi-cms","tailwind","tailwindcss","xstate"],"created_at":"2025-10-24T20:45:06.287Z","updated_at":"2026-04-05T23:02:16.005Z","avatar_url":"https://github.com/MrSmart0401.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Projects\n\n6 projects to understand Next.js core concepts, using MongoDB, Firebase and NextAuth.js.\n\n| #   | Project                            | Description                                                                                       |\n| --- | ---------------------------------- | ------------------------------------------------------------------------------------------------- |\n| 01  | [**NextEvents**](#nextevents)      | A social networking site using Next.js, MongoDB and Firebase.                                     |\n| 02  | [**Blog**](#blog)                  | A complete app example with a blog using Next.js, MongoDB, Markdown and React Syntax Highlighter. |\n| 03  | [**Dashboard**](#dashboard)        | A very simple dashboard to understand authentication with NextAuth.js.                            |\n| 04  | [**React Meetups**](#reactmeetups) | Another social networking site to summarize Next.js core concepts.                                |\n| 05  | [**DJ Events**](#djevents)         | A music event website using Strapi CMS as backend.                                                |\n| 06  | [**DevSpace**](#devspace)          | Another blog using Tailwind CSS and Markdown.                                                     |\n\n## \u003ca name=\"nextevents\"\u003e\u003c/a\u003e 1) NextEvents\n\nA social networking site using Next.js, MongoDB and Firebase.\n\n[See Demo deployed on Vercel](https://nextevents.vercel.app/)\n\n[See 01-nextevents folder](01-nextevents)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"01-nextevents\"\u003e\n        \u003cimg src=\"01-nextevents/screenshot.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- working with file-based routing and handling dynamic routes.\n- creating a general layout, adding React components and styling them with CSS modules.\n- displaying events and filtering them by date.\n- adding Static Site Generation (SSG) on the home page.\n- fetching events from Firebase and enabling page pre-rendering for dynamic pages.\n- using Server-Side Rendering (SSR) and client-side data fetching with SWR.\n- adding metadata with Head.\n- customizing the \\_app.js and \\_document.js files.\n- optimizing images with Image.\n- handling comments and signups for the newsletter with API routes.\n- setting up a MongoDB database and getting comments for a specific event.\n- handling errors and displaying user-friendly notifications.\n- deploying on Vercel.\n\n## \u003ca name=\"blog\"\u003e\u003c/a\u003e 2) Blog\n\nA complete app example with a blog using Next.js, MongoDB, Markdown and React Syntax Highlighter.\n\n[See Demo deployed on Vercel](https://next-dagny.vercel.app/)\n\n[See 02-blog folder](02-blog)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"02-blog\"\u003e\n        \u003cimg src=\"02-blog/screenshot.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- building the home page, creating a general layout and a reusable grid to display the latest posts.\n- reading markdown files and rendering posts as JSX with gray-matter and react-markdown.\n- displaying dynamic post pages and generating paths.\n- optimizing images from markdown with Image.\n- rendering code snippets from markdown and optimizing React Syntax Highlighter bundle size.\n- handling messages sent by users via an API route.\n- storing messages in a database with MongoDB.\n- adding metadata in Head and customizing \\_document.js file.\n- using React portals to show user-friendly notifications.\n- deploying on Vercel.\n\n## \u003ca name=\"dashboard\"\u003e\u003c/a\u003e 3) Dashboard\n\nA very simple dashboard to understand authentication with NextAuth.js.\n\n[See 03-dashboard folder](03-dashboard)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"03-dashboard\"\u003e\n        \u003cimg src=\"03-dashboard/screenshot.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- adding a user signup API route and sending signup requests from the frontend.\n- hashing passwords with Bcryptjs.\n- working with a custom auth provider in NextAuth.js to log in users.\n- managing active sessions and handling logouts.\n- protecting routes with client-side and server-side page guards.\n- protecting API routes.\n- enabling users to change their passwords.\n\n## \u003ca name=\"reactmeetups\"\u003e\u003c/a\u003e 4) React Meetups\n\nAnother social networking site to summarize Next.js core concepts.\n\n[See 04-reactmeetups folder](04-reactmeetups)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"04-reactmeetups\"\u003e\n        \u003cimg src=\"04-reactmeetups/screenshot.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- converting a React project into a Next.js app.\n- handling server-side rendering of pages with getStaticProps and getStaticPaths.\n- connecting and querying a MongoDB Database via an API route.\n- getting data from the database for page pre-rendering.\n- working with fallback pages and revalidation to display new meetups without having to rebuild.\n\n## \u003ca name=\"djevents\"\u003e\u003c/a\u003e 5) DJ Events\n\nA music event website using Strapi CMS as backend.\n\n[See Demo deployed on Vercel](https://next-djevents-strapi.vercel.app/)\n\n[See Strapi API deployed on Railway](https://next-projects-production.up.railway.app/events)\n\n[See 05-djevents folder](05-djevents)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"05-djevents\"\u003e\n        \u003cimg src=\"05-djevents/screenshot.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- creating a Next.js app with a custom layout.\n- handling module aliases with jsconfig.\n- fetching data with API routes, displaying events and event details.\n- setting up Strapi CMS and defining event content type.\n- hosting uploaded images on Cloudinary.\n- connecting to the Strapi API, filtering events, enabling search and pagination.\n- adding, editing and deleting event.\n- creating a slug and displaying user-friendly messages with React Toastify.\n- handling image upload with a modal using React Portal.\n- authenticating users, storing JWT token in server HttpOnly cookie.\n- registering users and creating an auth context.\n- protecting Strapi API routes and customizing user events endpoint.\n- creating a user dashboard and associating events with users.\n- guarding routes to add, edit, delete event and upload image.\n- displaying maps with MapQuest Geocoding API, Mapbox and ReactMapGL.\n- deploying Strapi backend on Railway.\n- deploying frontend on Vercel.\n\n## \u003ca name=\"devspace\"\u003e\u003c/a\u003e 6) DevSpace\n\nAnother blog using Tailwind CSS and Markdown.\n\n[See 06-devspace folder](06-devspace)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"06-devspace\"\u003e\n        \u003cimg src=\"06-devspace/screenshot.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- setting up [Tailwind CSS](https://tailwindcss.com/docs/guides/nextjs) with Next.js.\n- getting markdown files and parsing frontmatter with gray-matter.\n- displaying single blog posts with Marked.\n- handling pagination and creating category pages.\n- displaying a category sidebar.\n- handling searches with an API route.\n- [caching posts](https://medium.com/@matswainson/building-a-search-component-for-your-next-js-markdown-blog-9e75e0e7d210) on each commit with Husky.\n\nThis repository is based on 2 courses:\n\n- [Next.js \u0026 React - The Complete Guide](https://www.udemy.com/course/nextjs-react-the-complete-guide/) by Maximilian Schwarzmüller (2021)\n- [Next.js Dev to Deployment](https://www.udemy.com/course/nextjs-dev-to-deployment/) by Brad Traversy (2021)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsmart0401%2Fnextjs_ex6_guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrsmart0401%2Fnextjs_ex6_guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsmart0401%2Fnextjs_ex6_guide/lists"}