A simple Book Store CRUD Application built using MERN Stack (MongoDB, Express.js, React, Node.js). It allows users to Create, Read, Update, and Delete (CRUD) book records.
- 📌 Add new books
- 📌 View all books
- 📌 Edit book details
- 📌 Delete books
- 📌 User-friendly UI with Tailwind CSS
- React.js
- Axios (for API requests)
- React Router
- Tailwind CSS
- Node.js
- Express.js
- MongoDB (with Mongoose)
- CORS & dotenv
git clone https://github.com/yourusername/bookstore-crud.git
cd bookstore-crudcd backend
npm installPORT=5000
MONGO_URI=your_mongodb_connection_string
npm startor use nodemon:
npx nodemon server.jscd ../frontend
npm installnpm run dev| Method | Endpoint | Description |
|---|---|---|
| GET | /api/books |
Get all books |
| GET | /api/books/:id |
Get a specific book |
| POST | /api/books |
Add a new book |
| PUT | /api/books/:id |
Update book details |
| DELETE | /api/books/:id |
Delete a book |
bookstore-crud/
│── backend/
│ ├── models/
│ ├── routes/
│ ├── controllers/
│ ├── server.js
│── frontend/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── App.js
│ │ ├── main.jsx
│ ├── public/
│── .gitignore
│── README.md
- Run backend and frontend as explained above.
- Open
http://localhost:5173/(or the port Vite runs on) in your browser. - Add, Edit, or Delete books as needed.
✅ Add Authentication (JWT) 🔐
✅ Implement Search and Filter 🔍
✅ Deploy on Vercel & Render 🚀
Pull requests are welcome! Feel free to fork and submit PRs. 😊
This project is open-source and available under the MIT License.
🎉 Happy Coding! 🚀