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.
-
Create a new branch:
git checkout -b your-branch-name
-
Clone the repository into the new branch:
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 the 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 the server's root folder:DB='mongodb+srv:https://Admin_364:[email protected]/?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
.env
file:(you can skip as i have already provided connection string)- Create an account on MongoDB Atlas.
- Create a new cluster and database.
- Get the connection string.
- Update the
.env
file in theserver
directory with your connection string.
-
Start the backend server:
npm start
-
Now you are all set to start working on this project and do some contributions:
-
Make your changes.
-
Stage and commit your changes.
-
Push your changes to your branch:
git push origin your-branch-name
-
This project is still under active development. Feel free to contribute or check back later for updates.