How taiba275/fyp works
Project type and purpose
• This is a full-stack React/Next.js application (bootstrapped with create-next-app) that provides:
• A set of SSR/SSG web pages (Home, Jobs listing/detail, Login, Signup, UserProfile)
• A Next.js “app router” API layer for authentication, job data and posts
• A MongoDB backend for persisting Users, Jobs, Posts
• TailwindCSS for styling and static assets served from public/
File structure
• Top-level:
• public/Images – static assets
• src/app/… – Next.js app directory containing route‐based pages and API endpoints
• src/app/api/[…] – API route groups: auth (login/signup), jobs, posts
• src/app/models – Mongoose models (Job.js, User.js)
• src/library/mongodb.js – MongoDB connection helper
• Config/build files:
• next.config.mjs, jsconfig.json, postcss.config.mjs, tailwind.config.mjs
• .env for secrets, .gitignore for ignores
• No separate “backend” microservice—Next.js API routes live alongside the front end.
README for additional insights
• Confirms Next.js framework, development commands, Vercel deployment
• Uses next/font, auto-optimized fonts (Geist)
Detail
• Environment variables (in .env) feeding into mongodb.js