/jsmasterypro_devflow

Codebase for the Ultimate Next.js Course

Primary LanguageTypeScript


Project Banner
typescript nextdotjs tailwindcss mongodb shadcnui openai

The Ultimate Next.js Course

Build this project step by step with our detailed course on JavaScript Mastery PRO Website. Join the JSM PRO family!
  1. πŸ€– Introduction
  2. βš™οΈ Tech Stack
  3. πŸ”‹ Features
  4. 🀸 Quick Start
  5. πŸ”— Assets

🚨 Course

This repository contains the code corresponding to an in-depth course available on our JavaScript Mastery Pro Website.

If you prefer visual learning, this is the perfect resource for you. Follow our course to learn how to build projects like these step-by-step in a beginner-friendly manner

In this in-depth course, you’ll master Next.js by building and deploying a full-stack project, Devoverflowβ€”a community-driven platform inspired by StackOverflow, enhanced with AI-powered answers, gamification, recommendations, and more. Using the latest features of Next.js, you’ll explore rendering strategies like SSG, ISR, SSR, PPR, Server Functions, Caching, & Revalidation to create a production-ready application.

The project uses MongoDB for a robust database layer, NextAuth (Auth.js) for versatile authentication options (Email/Password, GitHub, Google), and sleek styling with TailwindCSS and ShadCN UI. Devoverflow enables developers to ask questions, post answers, leverage AI for responses, vote, organize content, contribute, discover jobs, and explore recommended topicsβ€”all while engaging with gamified elements like badges and rewards.

If you're getting started and need assistance or encounter any bugs, you can join our active PRO Discord community, which has over 5k+ members. It's a place where people help each other out.

  • Zod
  • Next.js
  • NextAuth
  • Open AI
  • MongoDB
  • ShadCN UI
  • TypeScript
  • TailwindCSS
  • React Hook Form

πŸ‘‰ Authentication: Secure sign-in with NextAuth, supporting Email/Password, Google, and GitHub.

πŸ‘‰ Home Page: Displays questions with filters, search, and pagination for easy navigation.

πŸ‘‰ Recommendations: Personalized suggestions on the home page.

πŸ‘‰ Complex Layout: Organized layout with popular questions and tags in view.

πŸ‘‰ Question Details: View questions with rich content, including images and code blocks.

πŸ‘‰ Voting: Upvote/downvote on questions to highlight helpful content.

πŸ‘‰ View Counter: Tracks the number of views for each question.

πŸ‘‰ Bookmarking: Save questions for quick access later.

πŸ‘‰ Answer Posting: MDX editor with light/dark modes for submitting answers.

πŸ‘‰ AI Answer Generation: Get AI-generated responses to questions.

πŸ‘‰ Answer Filtering: Sort answers by newest or most-voted, with pagination.

πŸ‘‰ Answer Voting: Upvote/downvote answers to rank quality responses.

πŸ‘‰ Collections: Organized saved questions with filters, search, and pagination.

πŸ‘‰ Community: Browse all users with search, filters, and pagination.

πŸ‘‰ Profile: View user info, badges, and engagement history with pagination.

πŸ‘‰ Job Finder: Discover jobs with filters and search, tailored to the user’s location.

πŸ‘‰ Tags Page: List of all tags with question counts, filters, and pagination.

πŸ‘‰ Tag Details: View questions by tag with search and pagination.

πŸ‘‰ Ask a Question: Simple interface for posting new questions.

πŸ‘‰ Edit & Delete: Update or remove questions and answers with validation and authorization.

πŸ‘‰ Global Search: Find content across questions, users, tags, and more.

πŸ‘‰ Responsive Design: Fully optimized for a seamless experience on desktops, tablets, and mobile devices.

πŸ‘‰ High Performance: Fast loading and smooth interactions for an efficient user experience.

and many more, including code architecture and reusability

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

Cloning the Repository

git clone https://github.com/JavaScript-Mastery-Pro/devflow-v2-record.git
cd devflow-v2-record

Installation

Install the project dependencies using npm:

npm install

Set Up Environment Variables

Create a new file named .env in the root of your project and add the following content:

# Mongodb
MONGODB_URI=

# OpenAI
OPENAI_API_KEY=

# Rapid API
NEXT_PUBLIC_RAPID_API_KEY=

# Auth
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=
AUTH_SECRET=
NEXTAUTH_URL=

# Tiny Editor
NEXT_PUBLIC_TINY_EDITOR_API_KEY=

NEXT_PUBLIC_SERVER_URL=

NODE_ENV=

Replace the placeholder values with your actual credentials. You can obtain these credentials by signing up on the respective websites

Running the Project

npm run dev

Open http://localhost:3000 in your browser to view the project.

Assets used in the project can be found here