|
1 | | -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). |
| 1 | +# StackOverflow Clone - Next.js |
2 | 2 |
|
3 | | -## Getting Started |
| 3 | +This repository is a clone of StackOverflow built using Next.js. |
4 | 4 |
|
5 | | -First, run the development server: |
| 5 | +## Description |
6 | 6 |
|
7 | | -```bash |
8 | | -npm run dev |
9 | | -# or |
10 | | -yarn dev |
11 | | -# or |
12 | | -pnpm dev |
13 | | -# or |
14 | | -bun dev |
15 | | -``` |
| 7 | +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. |
16 | 8 |
|
17 | | -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 9 | +## Features |
18 | 10 |
|
19 | | -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 11 | +- User Authentication |
| 12 | +- Ask Questions |
| 13 | +- Provide Answers |
| 14 | +- Vote on Questions and Answers |
| 15 | +- Real-time updates |
20 | 16 |
|
21 | | -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 17 | +## Installation |
22 | 18 |
|
23 | | -## Learn More |
| 19 | +1. Clone the repository: |
| 20 | + ```bash |
| 21 | + git clone https://github.com/TheCoderAdi/stackoverflow-nextjs.git |
| 22 | + ``` |
| 23 | +2. Navigate to the project directory: |
| 24 | + ```bash |
| 25 | + cd stackoverflow-nextjs |
| 26 | + ``` |
| 27 | +3. Install the dependencies: |
| 28 | + ```bash |
| 29 | + npm install |
| 30 | + ``` |
| 31 | +4. Create a `.env.local` file and add your environment variables: |
| 32 | + ```bash |
| 33 | + touch .env.local |
| 34 | + ``` |
| 35 | + ```bash |
| 36 | + NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= |
| 37 | + CLERK_SECRET_KEY= |
| 38 | + NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in |
| 39 | + NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/ |
| 40 | + NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up |
| 41 | + NEXT_PUBLIC_CLERK_AFTER_SIGN_UP__URL=/ |
| 42 | + NEXT_PUBLIC_TINY_EDITOR_API_KEY= |
| 43 | + NEXT_CLERK_WEBHOOK_SECRET= |
| 44 | + MONGO_URI= |
| 45 | + ``` |
| 46 | +5. Start the development server: |
| 47 | + ```bash |
| 48 | + npm run dev |
| 49 | + ``` |
24 | 50 |
|
25 | | -To learn more about Next.js, take a look at the following resources: |
| 51 | +## Usage |
26 | 52 |
|
27 | | -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
28 | | -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 53 | +1. Open your browser and navigate to [http://localhost:3000](http://localhost:3000). |
| 54 | +2. Register for a new account or log in with your existing credentials. |
| 55 | +3. Start asking questions, providing answers, and voting on posts! |
29 | 56 |
|
30 | | -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 57 | +## Contributing |
31 | 58 |
|
32 | | -## Deploy on Vercel |
| 59 | +Contributions are welcome! Please follow these steps to contribute: |
33 | 60 |
|
34 | | -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 61 | +1. Fork the repository. |
| 62 | +2. Create a new branch: |
| 63 | + ```bash |
| 64 | + git checkout -b feature/your-feature-name |
| 65 | + ``` |
| 66 | +3. Make your changes and commit them: |
| 67 | + ```bash |
| 68 | + git commit -m "Add some feature" |
| 69 | + ``` |
| 70 | +4. Push to the branch: |
| 71 | + ```bash |
| 72 | + git push origin feature/your-feature-name |
| 73 | + ``` |
| 74 | +5. Create a pull request. |
35 | 75 |
|
36 | | -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 76 | +## License |
| 77 | + |
| 78 | +This project is licensed under the MIT License. |
| 79 | + |
| 80 | +## Acknowledgments |
| 81 | + |
| 82 | +- [Next.js](https://nextjs.org/) |
| 83 | +- [Vercel](https://vercel.com/) |
| 84 | +- [StackOverflow](https://stackoverflow.com/) |
0 commit comments