This project is a clone of the OLX platform. To run the application after cloning this repository, follow the steps below.
- Node.js version 16 is required. If you have a different version installed, you'll need to switch to version 16.
-
Clone this repository to your local machine.
-
Open the
package.json
file in the root directory of the cloned repository. -
Change the
"start"
script inpackage.json
to the following:"start": "node --openssl-legacy-provider ./node_modules/react-scripts/scripts/start.js"
-
Open your terminal or command prompt.
-
Uninstall the latest version of Node.js (if it's not version 16) using the following command:
npm uninstall -g node@v18.12.1
-
Install Node.js version 16 using the following command:
npm install -g node@v16
-
Install the latest version of
react-scripts
using the following command:npm install react-scripts@latest
-
Now you're all set! To start the application, enter the following command in your terminal:
npm start
-
The application should now be running locally. Open your web browser and navigate to
http://localhost:3000
to access the OLX Clone project.