E-commerce websites require a tremendous amount of data. I searched for APIs online, but they were all priced services. Instead, I used browserless.io to fetch data from the e-commerce sites. Utilizing Puppeteer, I scraped data from different sites .
- Frontend: React, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB
- Architecture: MVC (Model-View-Controller)
- These are the steps required to install/run the project.
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the project directory:
cd your-repository -
Navigate to the client folder:
cd client -
Add this .env file in client's root folder
REACT_APP_API_URL=<your_backend_url>
-
Install frontend dependencies:
npm install
-
Start the frontend server:
npm start
-
Add this .env file in server's root folder
DB="mongodb+srv://Admin_364:admin@courseapp.yyiqalo.mongodb.net/?retryWrites=true&w=majority&appName=CourseApp" PORT=5000 -
Open another terminal and navigate to the server folder:
cd server -
Install backend dependencies:
npm install
-
Create a database in MongoDB Atlas and add the connection string to the
.envfile(I have already include mongo db connection string you can skip this step):- Create an account on MongoDB Atlas.
- Create a new cluster and database.
- Get the connection string.
- Create a
.envfile in theserverdirectory. - Add the following to the
.envfile, replacing<your_connection_string>with your actual connection string:
MONGODB_URI=<your_connection_string> -
Start the backend server:
npm start
-
Now you are all set to start working on this project
This project is still under active development. Feel free to contribute or check back later for updates.