This is a full-stack web application inspired by Stack Overflow built using the MERN stack:
- MongoDB for the database
- Express.js and Node.js for the backend API
- React.js for the frontend
- User authentication and registration
- Ask and answer questions
- Upvote, downvote, and comment on answers
- Tag-based question categorization
- User profile and reputation system
root/
│
├── client/ # React frontend
│
├── server/ # Express backend with mongoDB
│
└── README.md
git clone https://github.com/Rushikesh-Thorat/stachoverflow-clone-mern.git
cd stachoverflow-clone-mern
cd server
npm install
npm install jsonwebtoken
npm install mongoose
cd ../client
npm install
Create a .env
file in the server
.
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
cd server
npm start
In a new terminal:
cd client
npm start
Open your browser and go to http://localhost:3000
- MongoDB
- Express.js
- React.js
- Node.js
- Redux Toolkit