Skip to content

Commit ce63fb0

Browse files
committed
2 parents f83015d + 9990a1e commit ce63fb0

1 file changed

Lines changed: 71 additions & 23 deletions

File tree

README.md

Lines changed: 71 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,84 @@
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
22

3-
## Getting Started
3+
This repository is a clone of StackOverflow built using Next.js.
44

5-
First, run the development server:
5+
## Description
66

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.
168

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
9+
## Features
1810

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
2016

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
2218

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+
```
2450

25-
To learn more about Next.js, take a look at the following resources:
51+
## Usage
2652

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!
2956

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
57+
## Contributing
3158

32-
## Deploy on Vercel
59+
Contributions are welcome! Please follow these steps to contribute:
3360

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.
3575

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

Comments
 (0)