This project is a clone of OLX, an online marketplace for buying and selling a variety of products and services. It is built using the MERN stack, which includes MongoDB, Express, React, and Node.js. The project is organized into two main directories: backend
and frontend
.
backend/
: Contains the server-side code and configuration for the backend.frontend/
: Contains the client-side code and assets for the frontend.
To get started with the OLX Clone project, follow these steps:
- Node.js (version 14 or later)
- npm (Node Package Manager) or yarn
- MongoDB instance (local or cloud)
-
Clone the Repository
git clone [https://github.com/yourusername/olx-clone.git](https://github.com/pruthviraj7714/olx-clone.git) cd olx-clone
-
Backend Setup
- cd backend
- npm install
- cp .env.example .env
- npm run start
-
Frontend Setup
- cd frontend
- npm install
- npm run dev
The frontend application will be available at http://localhost:3000 by default.