How farhan-akhtar2003/feedify works
Project type and purpose
• This is a full-stack web application named “FEEDIFY” for collecting, summarizing, and analyzing course and teacher feedback.
• The frontend is a single-page React application (Vite + Tailwind) handling UI, routing, and client-side state (React Context).
• The backend is a Node.js/Express REST API using Mongoose to interact with MongoDB. It handles authentication (JWT + cookies), form management, submissions, NLP summarization (via Hugging Face), and sentiment analysis.
File structure
• Top level:
• frontend/ – the entire React app
• server/ – the Express API
• Frontend sub-structure:
• src/pages – React Router pages (Admin, Faculty, Student, Auth)
• src/components – reusable UI pieces (forms, modals, charts) grouped by role
• context – user context provider for auth state
• utils/constants/db – configuration and helper functions
• Backend sub-structure:
• controllers – business logic (authController, NLP calls)
• routes – Express routers (authRoutes)
• models – Mongoose schemas (User, Form, Submission)
• helpers – authentication middleware, JWT utilities
• index.js – server entry point, middleware registration (cors, cookie-parser)
Key insights from README
• Tech stack installations in both frontend and backend.
• Role-based flows: student fills forms, faculty & admin view submissions/analysis.
• External dependency: Hugging Face API for NLP summarizer (requires HF_API_KEY).
• Warnings about useEffect reload quirks in React Context.