How vikashpatel04/microcollegescraping works
Project Type and Purpose
• That the back end is responsible for scraping job data from multiple sources (Indeed, LinkedIn, Naukri) and the front end renders the results for users.
File Structure
• Two primary folders:
• “back-end”: Contains Node.js files including the main server (server.js) and individual scraping scripts (scrapeIndeedJobs.js, scrapeLinkedInJobs.js, scrapeNaukriJobs.js).
• “front-end”: Contains a React application using Vite as the build tool. Notice the React components (in src/components and src/pages), configuration files (tailwind.config.js, vite.config.js), and asset directories.
• Although the README mentions “MERN-stack”, note that you might not see an explicit “database” layer (like a MongoDB schema) in the file tree. This could be because the focus presently is on scraping and serving data, or it might be a detail to be integrated later.
Main Components
• Front-End Component:
• Represents the Vite-based React Web App.
• Sub-components such as the header, search components, and pages like the “Hero” section.
• Use of Tailwind CSS and Vite configuration.
• Back-End Component:
• Represents the Node.js server (server.js) which handles HTTP requests.
• Separate modules/scripts for scraping Indeed, LinkedIn, and Naukri.
• Test endpoints (e.g., /test-linkedin, /test-indeed, /test-naukri) which trigger the scraping functions.
• (Optional) Data Flow/Database Component:
Relationships and Interactions
• From the Back End, indicate that API endpoints interact with the scraping modules:
• For example, a request to /test-linkedin triggers the scrapeLinkedInJobs.js module which then returns data to the API route.
Architectural Patterns and Design Principles
• Clear Separation of Concerns:
• The front end is solely responsible for presentation and user interaction.
• The back end handles data fetching (via scraping) and potentially further processing.