aurda012 / codelounge

A Stack-Overflow Alternative. Find answers to your coding problems. CodeLounge is a community-driven platform designed to empower developers worldwide. Ask questions, engage with the community and collaborate on projects.

Home Page:https://codelounge.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Project Banner
typescript nextdotjs clerk mongodb openai shadcn tailwindcss

A StackOverflow Alternative.

  1. πŸ€– Introduction
  2. βš™οΈ Tech Stack
  3. πŸ”‹ Features
  4. 🀸 Quick Start

Find answers to your coding problems. CodeLounge is a community-driven platform designed to empower developers worldwide. Ask questions, engage with the community and collaborate on projects.

  • Next.js
  • TypeScript
  • MongoDB
  • Clerk
  • OpenAI
  • TipTap Editor
  • Lowlight
  • Imagekit
  • Shadcn
  • Tailwind CSS

πŸ‘‰ Authentication: Latest Clerk implementation with sign-in and sign-up pages.

πŸ‘‰ CodeLounge AI: Get an instant answer to your question thanks to CodeLounge's OpenAI integration.

πŸ‘‰ Home-Page: Allows people to view and search all of the published questions along with filtering for newest, recommended, frequent and unanswered.

πŸ‘‰ Question Details Page: Allows users to view the question details with formatted code along with all answers and the opportunity for you to answer yourself!

πŸ‘‰ Ask A Question: Easy to use and intuitive text editor with implementation of code blocks based on popular languages. CodeLounge AI will instantly provide you with an answer.

πŸ‘‰ Community: Enables users to find and search for other developers part of the CodeLounge community.

πŸ‘‰ Collection: Provides users with the ability to see their saved questions.

πŸ‘‰ Find Jobs: Easily search and filter through some of the latest software engineering jobs on the market.

πŸ‘‰ Tags: Search for "tags" that have been added to questions. Find questions with specific frameworks, features, etc.

πŸ‘‰ Profile: View user profiles with an interesting badge system for their activity on CodeLounge along with their questions and answers.

πŸ‘‰ Edit Question: Provides the ability to edit your question with updated details. Will also provide an updated answer from the CodeLounge AI.

πŸ‘‰ Delete Questions/Answers: Easily delete your question or answer.

πŸ‘‰ Editor Keyboard Actions: Allows users to utilize keyboard shortcuts for various actions, including copying, pasting, deleting, indenting and more.

πŸ‘‰ Global Search: Easily find questions/answers you're looking for with an implemented global search.

πŸ‘‰ Loading States: Skeletonized loading states for all pages along with a global loading state and a top-loader.

πŸ‘‰ SEO Best Practices: Implemented server side metadata to populate all needed metadata based on individual questions, tags, etc. 100% SEO score on Lighthouse.

πŸ‘‰ Performance: Implemented dynamic imports along with best practices to provide a 100% Lighthouse performance score.

and many more, including code architecture, advanced react hooks, reusability, etc.

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/aurda012/codelounge.git
cd codelounge

Installation

Install the project dependencies using npm:

npm install

Set Up Environment Variables

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

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_CLERK_WEBHOOK_SECRET=

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/

MONGODB_URL=

NEXT_PUBLIC_SERVER_URL=

OPENAI_API_KEY=

NEXT_PUBLIC_IMAGE_KIT_KEY=
NEXT_PUBLIC_IMAGE_KIT_URL=
IMAGE_KIT_PRIVATE_KEY=

Replace the placeholder values with your actual credentials. You can obtain these credentials by signing up on the OpenAI, Clerk, and MongoDB.

Running the Project

npm run dev

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

About

A Stack-Overflow Alternative. Find answers to your coding problems. CodeLounge is a community-driven platform designed to empower developers worldwide. Ask questions, engage with the community and collaborate on projects.

https://codelounge.vercel.app


Languages

Language:TypeScript 90.9%Language:CSS 8.9%Language:JavaScript 0.2%Language:HTML 0.0%