This repository is a clone of StackOverflow built using Next.js.
This project aims to replicate the core functionalities of the popular Q&A platform, StackOverflow. It allows users to post questions, provide answers, vote on posts, and more.
- User Authentication
- Ask Questions
- Provide Answers
- Vote on Questions and Answers
- Real-time updates
- Clone the repository:
git clone https://github.com/TheCoderAdi/stackoverflow-nextjs.git
- Navigate to the project directory:
cd stackoverflow-nextjs
- Install the dependencies:
npm install
- Create a
.env.local
file and add your environment variables:touch .env.local
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= CLERK_SECRET_KEY= NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/ NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up NEXT_PUBLIC_CLERK_AFTER_SIGN_UP__URL=/ NEXT_PUBLIC_TINY_EDITOR_API_KEY= NEXT_CLERK_WEBHOOK_SECRET= MONGO_URI=
- Start the development server:
npm run dev
- Open your browser and navigate to http://localhost:3000.
- Register for a new account or log in with your existing credentials.
- Start asking questions, providing answers, and voting on posts!
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add some feature"
- Push to the branch:
git push origin feature/your-feature-name
- Create a pull request.
This project is licensed under the MIT License.