How sujalkrg/bookstore-mern-stack works
Project type and purpose
• From the README and file tree, this is a full-stack MERN (MongoDB, Express, React, Node.js) BookStore application.
• Purpose: provide a responsive UI for users to Create, Read, Update, and Delete books; backend exposes REST API; deployed on Vercel (frontend) and Render (backend).
File structure
• Top level splits into frontend/ and backend/.
• backend/ contains:
• config.js (env + DB connection)
• index.js (Express app entry)
• routes/booksRoute.js (CRUD endpoints)
• models/bookModel.js (Mongoose schema)
• package.json (dependencies: express, mongoose, cors, dotenv)
• frontend/ contains:
• Vite-based React app in src/
• Components (modals, cards, tables), pages (Home, Create, Edit, Delete)
• Axios for HTTP, Notistack for alerts, TailwindCSS for styling
• Public/index.html, main.jsx (app bootstrap)
• Root package.json likely orchestration or workspace, plus .gitignore.
README for additional insights
• Confirms tech stack, CI/CD plans, deployment URLs, environment variables.