This repository contains a full-stack Bookstore application built with the MERN stack (MongoDB, Express.js, React, Node.js). It features a RESTful API for managing book and user data, a responsive React frontend for browsing and purchasing, and MongoDB for storage. Ideal for learning full-stack development with MERN.
- π Browse Books: Explore a wide variety of books available in the store.
- π Book Details: View detailed information about each book, including price and description.
- πΌ User Management: Create and manage user accounts (signup/login).
- ποΈ Add to Cart: Add your favorite books to the shopping cart.
- οΏ½ Multiple Payment Options: (UI only)
- π€ Admin Panel: (UI only)
- οΏ½π Fast and Responsive: Enjoy a smooth and responsive user interface.
Follow these steps to run the project locally:
git clone https://github.com/dhruvjain-github/Bookstore.git
cd Bookstorecd Backend
npm installCreate a .env file in the Backend directory with the following content:
PORT=4000
MONGODBURI=your_mongodb_connection_stringStart the backend server:
npm startIn a new terminal:
cd ../Frontend
npm install
npm run devThe frontend will run on http://localhost:5173 by default.
Bookstore/
βββ Backend/
β βββ app.js
β βββ controllers/
β βββ model/
β βββ routes/
β βββ package.json
βββ Frontend/
β βββ src/
β βββ public/
β βββ package.json
β βββ ...
βββ README.md
- Frontend: React, Vite, Tailwind CSS
- Backend: Node.js, Express.js, MongoDB, Mongoose
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the ISC License.